أَخْبَرَنَا أَبُو مُحَمَّدِ بْنُ يُوسُفَ ، أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ عُقْبَةَ ، حَدَّثَنَا الْحُسَيْنُ بْنُ الْحَكَمِ الْحِبَرِيُّ ، حَدَّثَنَا أَبُو حَفْصٍ الْأَعْشَى قَالَ سَمِعْتُ جَعْفَرَ بْنَ مُحَمَّدٍ يَقُولُ : الْخِضَابُ مَكِيدَةٌ لِلْعَدُوِّ مَرْضَاةً لِلزَّوْجَةِ .
قَالَ الشَّيْخُ : وَهَذَا إِنْ أَرَادَ بِغَيْرِ السَّوَادِ فَهُوَ سُنَّةٌ ، وَإِنْ أَرَادَ بِالسَّوَادِ فَقَدْ وَرَدَ النَّهْيُ عَنْهُ .
وَأَمَّا الْخِضَابُ بِالسَّوَادِ .
Imam Ja'far bin Muhammad (may Allah have mercy on him) said: "Dyeing (the hair) is a stratagem against the enemy (a means of intimidating him) and a cause of the wife's pleasure."
The Shaykh (Imam al-Bayhaqi, may Allah have mercy on him) said: "If he meant dye other than black, then it is a Sunnah; and if he meant black dye, then a prohibition of it has been reported."
As for black dye (this is what has been reported about it).