Maqil bin Yasar reported,

I saw myself on the day of the Tree, with the Prophet ﷺ taking the pledge from the people, while I was lifting a branch from its branches away from his head. We were fourteen hundred. He said, "We did not pledge to him upon death, but we pledged to him that we would not flee."

Azami 8986

Sahih

عن معقل بن يسار قال

لقد رأيتني يوم الشجرة، والنبي ﷺ يبايع الناس، وأنا رافع غصنا من أغصانها عن رأسه، ونحن أربع عشرة مائة، قال: لم نبايعه على الموت، ولكن بايعناه على أن لا نفر.

الأعظمي 8986صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Hudaybiya and expedition of Dhat al-Qarad
Section
Pledge of Ridwan to the death
Numbering
Jami al-Kamil 8986 (2nd edition)
Azami 8986