When the Prophet ﷺ threw the pebbles at the Jamrah, he sacrificed his offering, then offered the right side of his head to the barber, who shaved it, and he gave the hair to Abu Talha. Then he offered him the left side, which he shaved, and he said, "Distribute it among the people."Ibn Abu Umar narrated to us, Sufyan narrated to us, from Hisham, something similar.
حدثنا أبو عمار الحسين بن حريث حدثنا سفيان بن عيينة عن هشام بن حسان عن ابن سيرين
لما رمى النبي ﷺ الجمرة نحر نسكه ثم ناول الحالق شقه الأيمن فحلقه فأعطاه أبا طلحة ثم ناوله شقه الأيسر فحلقه فقال اقسمه بين الناس حدثنا ابن أبي عمر حدثنا سفيان عن هشام نحوه
Muslim also transmitted it in the Book of Hajj, chapter on the explanation that the sunnah on the day of sacrifice is to throw the pebbles then slaughter... etc, hadith: 1305/326, from the hadith of Sufyan bin Uyayna. Bukhari also transmitted it, hadith: 169, through another route from Anas with the same wording.