Fasting nine days of Dhuâl-Hijjah is mustahabb. This is indicated by the words of the Prophet (peace and blessings of Allaah be upon him), as narrated in the hadeeth of Ibn âAbbaas (may Allaah be pleased with him): âThere are no days on which righteous deeds are more beloved to Allaah then these ten days â i.e., ten days of Dhuâl-Hijjah).â They said: âO Messenger of Allaah, not even jihad for the sake of Allaah?â He said: âNot even jihad for the sake of Allaah, unless a man goes out himself with his wealth and does not come back with anything (i.e., he expends all his wealth and is martyred).â Narrated by al-Bukhaari, 969.Â
And it was narrated from Hunaydah ibn Khaalid from his wife that one of the wives of the Prophet (peace and blessings of Allaah be upon him) said: âThe Messenger of Allaah (peace and blessings of Allaah be upon him) used to fast nine days of Dhuâl-Hijjah and the day of âAshooraâ and three days of each month â the first Monday and two Thursdays.â Narrated by Imam Ahmad, 21829; Abu Dawood, 2437; classed as daâeef in Nasab al-Raayah, 2/180, but classed as saheeh by al-Albaani.Â
With regard to fasting on the day of Eid, this is haraam, as is indicated by the marfooâ hadeeth of Abu Saâeed al-Khudri (may Allaah be pleased with him): âHe the Prophet (peace and blessings of Allaah be upon him) forbade fasting on the day of (Eid) al-Fitr and the day of al-Nahr (the day of sacrifice, i.e., Eid al-Adha).â Narrated by al-Bukhaari, no. 1992; Muslim, 827. The scholars are unanimously agreed that it is haraam to fast on these days.Â
Righteous deeds on these ten days are better than on others. With regard to fasting, that should only be done on nine of them; the tenth day is the day of Eid when it is haraam to fast.Â
Based on this, what is meant by the virtue of the ten days of Dhuâl-Hijjah is fasting nine days only, even though they are called ten days.Â
See Sharh Muslim by al-Nawawi, hadeeth no. 1176.