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), was present with the Prophet (peace and blessings be upon him) at the place of sacrifice while the Prophet (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 clipped his nails and gave them to his companion. Then he distributed some of it among some men. Muhammad (may Allah have mercy on him) said: "And that (hair) is with us, dyed with henna and katam," or he said: "with katam and henna."
Related hadith on this topic