He related that he witnessed the Prophet ﷺ at the place of sacrifice along with a man from Quraysh while he was distributing the sacrificial animals. Neither he nor his companion received any share of them. So the Messenger of Allah ﷺ shaved his head into a cloth and gave it to him, and he distributed it among some men. Then he clipped his fingernails and gave them to his companion. He said, "It is still with us, dyed with henna and katam," meaning his hair.
قال حدثنا عبد الصمد بن عبد الوارث قال حدثنا أبان هو العطار قال حدثنا يحيى يعني ابن أبي كثير عن أبي سلمة
حدثه أنه شهد النبي ﷺ على المنحر ورجلا من قريش وهو يقسم أضاحي فلم يصبه منها شيء ولا صاحبه فحلق رسول الله ﷺ رأسه في ثوبه فأعطاه فقسم منه على رجال وقلم أظفاره فأعطاه صاحبه قال فإنه لعندنا مخضوب بالحناء والكتم يعني شعره
Its isnad is sahih, its narrators are well known and reliable, and Muhammad bin Abdullah bin Zayd bin Abd Rabbih is reliable by consensus, his hadith being found in Muslim and the four Sunan.The hadith was narrated by Muslim, 2/947, no. 1305m, from Anas concerning Hajj, explaining that the sunnah on the Day of Sacrifice is to throw the pebbles. It was likewise narrated by Tirmidhi, 3/246, no. 912, who said it is hasan sahih, and by Ibn Majah, 2/1016, no. 3053.