Abdullah bin Umar reported,

The people were with the Prophet ﷺ on the day of Hudaybiyah, scattered beneath the shade of the trees, when suddenly the people gathered closely around the Prophet ﷺ. He said, "Abdullah, go see what is happening with the people who have crowded around the Messenger of Allah ﷺ."He found them giving the pledge of allegiance, so he gave his pledge, then returned to Umar, who then went out and gave his pledge as well.

Azami 8990

Sahih

عن ابن عمر

أن الناس كانوا مع النبي ﷺ يوم الحديبية تفرقوا في ظلال الشجر، فإذا الناس محدقون بالنبي ﷺ فقال: يا عبد الله، انظر ما شأن الناس قد أحدقوا برسول الله ﷺ فوجدوهم يبايعون، فبايع ثم رجع إلى عمر فخرج فبايع.

الأعظمي 8990صحيح
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 allegiance to Umar bin Khattab
Numbering
Jami al-Kamil 8990 (2nd edition)
Azami 8990