As for the two ḥadiths, consult al-Khaṭṭābī in al-Maʿālim and al-Manāwī in al-Fayḍ. Ibn al-Qayyim said in Tahdhīb al-Sunan, 6/103:
"The correct view is that there is absolutely no contradiction among the ḥadiths on this subject. The Messenger of Allah ﷺ forbade two things with regard to altering grey hair: first, plucking it; second, dyeing it black, as has been mentioned. What he allowed is colouring it with something other than black—such as henna or a yellowish dye—and this is what the Companions did.
As for dyeing with black, a number of scholars deemed it disliked, and that is undoubtedly the sound position for the reasons already cited. Imām Aḥmad was asked, ‘Do you dislike dyeing with black?’ He replied, ‘Indeed—by Allah.’
Others permitted it, among them the disciples of Abū Ḥanīfa, and it is reported from al-Ḥasan and al-Ḥusayn, although the authenticity of that report is questionable. Even if it were proven, no one’s statement can stand against the Messenger of Allah ﷺ; his sunnah is the one most deserving of adherence, no matter who may oppose it."
I say: Because of the aforementioned ḥadiths that encourage the use of dye, the early generations devoted great attention to this sunnah. In the biographical entries, historians often record of a person, “He used to dye his hair,” or, “He did not dye.” The practice is still observed in some Muslim lands, especially those that have not been heavily influenced by Western modernity and its harmful customs.
In truth, it is a firmly established and continuous sunnah. The predecessors acted upon it—as already noted—and numerous ḥadiths urge its application. Therefore Muslims are not permitted to develop a custom that contradicts it, especially since the reason for dyeing, explicitly stated in the ḥadith agreed upon—“The Jews and Christians do not dye their hair, so differ from them”—remains in force. This report is cited in Ghāyat al-Marām fī Takhrīj Aḥādīth al-Ḥalāl wa-l-Ḥarām, 104.
Accordingly, we are certain that the view adopted by the author—that the matter of dyeing has reverted to