Sayyiduna Anas bin Malik (may Allah be pleased with him) said: When the Prophet (peace and blessings be upon him) had stoned the Jamrah and offered his sacrifice, he presented the right side of his head to the barber, who shaved it, and he (peace and blessings be upon him) gave that hair to Sayyiduna Abu Talhah (may Allah be pleased with him). Then he presented the left side to him and he shaved it, and he (peace and blessings be upon him) ordered him to "distribute it among the people."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13409