Anas bin Malik reported,

Anas reported that the Messenger of Allah ﷺ came to Mina, went to the Jamrah and threw the pebbles at it, then went to his lodging in Mina and offered the sacrifice. He then said to the barber, "Take," pointing to the right side of his head, then to the left side. After that, he began distributing the hair to the people.In another narration, he gestured with his hand toward the right side like this, and his hair was divided among those near him. He then signaled to the barber to shave the left side, and after it was shaved, he gave that hair to Umm Sulaym.In another narration, the barber began with the right side, and the Prophet ﷺ distributed the hair, a strand or two at a time, among the people. Then he indicated the left side and did the same with it. Then he said, "Is Abu Talha here?" and handed it to Abu Talha.In another narration, he gestured with his hand to his head, and the barber shaved the right side. He divided that hair among those near him, then said, "Shave the other side." Then he asked, "Where is Abu Talha?" and gave it to him.In another narration, he offered the barber the right side and it was shaved. He then called Abu Talha al-Ansari and gave it to him. Then he offered the left side and said, "Shave it," so it was shaved. He gave it to Abu Talha and said, "Distribute it among the people."

Azami 5200

Sahih

عن أنس بن مالك

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

الأعظمي 5200صحيح
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
It is from the sunnah to order the acts of Hajj on the day of sacrifice by stoning, then slaughtering, then shaving, then performing tawaf al-ifadah
Numbering
Jami al-Kamil 5200 (2nd edition)
Azami 5200