Anas bin Malik reported,

The Messenger of Allah ﷺ threw the pebbles at Jamrat al-Uqba, then went to the sacrificial animals and slaughtered them. The barber was seated, and he gestured with his hand toward his head. The barber shaved the right side, and the Prophet ﷺ distributed the hair among those near him. Then he said, "Shave the other side." He then asked, "Where is Abu Talha?" and gave it to him.

Azami 5187

Sahih

عن أنس بن مالك

أن رسول الله ﷺ رمى جمرة العقبة، ثم انصرف إلى البدن فنحرها، والحجام جالس وقال بيده عن رأسه، فحلق شقه الأيمن فقسمه فيمن يليه، ثم قال: اخلق الشق الآخر فقال: أين أبو طلحة؟ فأعطاه إياه.

الأعظمي 5187صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Messenger of Allah ﷺ shaving his head during the Farewell Pilgrimage and distributing his hair among the people
Numbering
Jami al-Kamil 5187 (2nd edition)
Azami 5187