“The Messenger of Allah, may Allah’s peace and blessings be upon him, forbade fasting on two days: the day of Fitr and the day of Naḥr (Aḍḥā).”
Narrated by al-Bukhārī (No. 1991) and Muslim (No. 1138 — the wording is his), from the ḥadīth of Abū Sa‘īd al-Khudrī, may Allah be pleased with him.
Brief Explanation of the Hadith
The ‘Īds are a great rite among the rites of Islām. In them, Allah has legislated the manifestation of joy and gladness, and gratitude for the completion of His blessings. Part of this is the prohibition of fasting on the two ‘Īd days — the day of Fitr and the day of Naḥr — in accordance with the prohibition of the Prophet, may Allah’s peace and blessings be upon him. By the day of Fitr is meant the first day of Shawwāl, and by the day of Naḥr is meant the tenth of Dhul-Ḥijjah.
If one fasts on these days, the fast does not count — neither as a makeup for Ramaḍān, nor as a fulfillment of a vow, nor as an expiation, nor as a voluntary fast.
The wisdom behind the prohibition of fasting on them is that they are days in which eating and drinking are legislated, as a manifestation of Allah’s blessings. On the day of Naḥr, gratitude is expressed through eating from the sacrifices and ritual offerings, and on the day of Fitr, joy is manifested through breaking the fast after the completion of Ramaḍān. This is further evidenced by the ḥadīth of ‘Umar, may Allah be pleased with him, who said: “The Messenger of Allah forbade fasting on two days: as for the day of Aḍḥā, you eat from your sacrifices; and as for the day of Fitr, you break your fast from your fasting.” Were people to fast on the day of ‘Īd al-Fitr, the beginning of Shawwāl would be mixed with the end of Ramaḍān, and the distinction between the time of fasting and the time of breaking the fast would not appear. The legislation is established upon differentiating between times and rulings.
Similarly, the Days of Tashrīq are prohibited for fasting, for they are days of eating, drinking, and remembrance of Allah, may He be exalted. However, one who does not possess sacrificial offerings (had’y) may fast on them. This differs from the two ‘Īd days, on which fasting is never permissible under any circumstances.