Muhammad bin Abdullah bin Zayd (may Allah have mercy on him) narrates from his father, Sayyiduna Abdullah bin Zayd (may Allah be pleased with him), that he and a man from the Ansar were present with the Prophet (peace and blessings be upon him) at the place of sacrifice. The Messenger of Allah (peace and blessings be upon him) distributed the sacrificial animals, and neither he nor his companion received anything. He (peace and blessings be upon him) had his head shaved and, placing (the hair) in his cloth, gave it to him, that is, some of that hair, 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: "The hair of the Prophet (peace and blessings be upon him) is with us, dyed with henna and katam."
Related hadith on this topic