Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:3629Muḥammad b. al-Muthanná > Khālid b. al-Ḥārith And Ibn Abū ʿAdī > Ḥumayd

“Anas bin Malik was asked: ‘Did the Messenger of Allah ﷺ dye his hair?’ He said: ‘He did not have any white hair apart from approximately seventeen or twenty hairs at the front of his beard.’”  

ابن ماجة:٣٦٢٩حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى حَدَّثَنَا خَالِدُ بْنُ الْحَارِثِ وَابْنُ أَبِي عَدِيٍّ عَنْ حُمَيْدٍ قَالَ

سُئِلَ أَنَسُ بْنُ مَالِكٍ أَخَضَبَ رَسُولُ اللَّهِ ﷺ قَالَ إِنَّهُ لَمْ يَرَ مِنَ الشَّيْبِ إِلاَّ نَحْوَ سَبْعَةَ عَشَرَ أَوْ عِشْرِينَ شَعَرَةً فِي مُقَدَّمِ لِحْيَتِهِ  


See similar narrations below:

Collected by Muslim
muslim:2341cḤajjāj b. al-Shāʿir > Muʿallá b. Asad > Wuhayb b. Khālid > Ayyūb > Muḥammad b. Sīrīn

I asked Anas b. Malik whether Messenger of Allah ﷺ dyed his hair. He said: He had but little white hair.  

مسلم:٢٣٤١cوَحَدَّثَنِي حَجَّاجُ بْنُ الشَّاعِرِ حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ حَدَّثَنَا وُهَيْبُ بْنُ خَالِدٍ عَنْ أَيُّوبَ عَنْ مُحَمَّدِ بْنِ سِيرِينَ قَالَ

سَأَلْتُ أَنَسَ بْنَ مَالِكٍ أَخَضَبَ رَسُولُ اللَّهِ ﷺ قَالَ إِنَّهُ لَمْ يَرَ مِنَ الشَّيْبِ إِلاَّ قَلِيلاً