It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) stoned Jamrat al-Aqabah on the Day of Sacrifice, then returned to his place in Mina, had his sacrificial animal brought and slaughtered it, then called the barber. He shaved the hair from the right side of the head of the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) distributed it among those sitting near him, one or two hairs each. Then he shaved the hair from the left side of the head of the Prophet (peace and blessings be upon him). He (peace and blessings be upon him) said: "Is Abu Talhah here?" And he (peace and blessings be upon him) gave that hair to Sayyiduna Abu Talhah (may Allah be pleased with him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4232