Yazid bin Abu Ubayd reported,

I asked Salama, "What did you pledge yourselves to the Messenger of Allah ﷺ for on the day of Hudaybiya?"He replied, "To death."

Muslim 4823

Sahih

و حدثناه إسحق بن إبراهيم حدثنا حماد بن مسعدة حدثنا يزيد عن سلمة بمثله

مسلم 4823صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Recommendation of pledging allegiance to the commander of the army when intending to fight, and description of the pledge of Ridwan under the tree
Numbering
Darussalam 4823
Muslim 4823