It is narrated from Muhammad bin Abdullah bin Zayd (may Allah have mercy on him) that his father, Sayyiduna Abdullah bin Zayd (may Allah be pleased with him), related that he was present with the Prophet (peace and blessings be upon him) at the place of sacrifice, and a man from Quraysh was also there, while he (peace and blessings be upon him) was distributing the sacrificial animals, and neither he nor his companion received anything. Then the Messenger of Allah (peace and blessings be upon him) had his head shaved and, placing (the hair) in his cloth, gave it to him, and he distributed some of it among some men; and he (peace and blessings be upon him) clipped his nails and gave them to his companion. Muhammad (may Allah have mercy on him) said: "That (hair) is with us, dyed with henna and katam," meaning the hair of the Prophet (peace and blessings be upon him).
Related hadith on this topic