The sunnah of fasting

Chapter 31 · about 15 min read

In short

  • Eat suhur, the meal before dawn, even a little. It has blessing in it, and Nabi ﷺ ate it late, close to Fajr. Break your fast as soon as the sun sets, with dates or water, and say the dua he taught.
  • Laylat al-Qadr is better than a thousand months. Look for it in the odd nights of the last ten nights of Ramadan, and ask Allah to pardon you.
  • Itikaf means staying in the masjid to worship. Nabi ﷺ did it in the last ten days of Ramadan every year.
  • After Ramadan, you can keep fasting: six days of Shawwal, the day of Arafah, Ashura, Mondays and Thursdays, and the three white days of each month. None of these are required.
  • Do not fast on the two Eids or the days of tashriq. Do not single out a Friday, and do not fast every single day without a break.
Take the short lessonsThe key points of this chapter, a few screens at a time, with a quick check at the end.

What this chapter is about

Nabi ﷺ showed us how to fast well: how to start and end the day, how to spend the last nights of Ramadan, and which other days to fast through the year. These are sunnah: leaving them does not break your fast, and doing them adds blessing and reward.

The basics are in Ramadan basics, What breaks the fast and When you cannot fast.

This chapter is the full reference. For a short course with quizzes, see the Sunnah of fasting lessons. For an easy overview of Ramadan, see the Fasting page.

Suhur: the meal before dawn

Suhur is the meal you eat at night, before dawn, when you plan to fast.

  • Nabi ﷺ said: eat suhur, for there is blessing in suhur1.
  • He said the difference between our fast and the fast of the People of the Book (Jews and Christians) is eating suhur2.
  • Even a little counts: how good are dates as the believer's suhur3.
  • Suhur is a sunnah, not a duty. If you sleep through it, your fast is still valid.

Eat it late, and stop at Fajr

  • Zaid ibn Thabit ate suhur with Nabi ﷺ, then they stood for Fajr. Between the two was the time it takes to recite fifty ayat4, only a few minutes. So eat close to the end of the night, not at midnight.
  • Allah says: eat and drink until the white thread of dawn becomes clear from the black thread5. Bilal called an early adhan at night, and Nabi ﷺ said: keep eating and drinking until Ibn Umm Maktum calls the adhan, at dawn6.
  • So the fast starts at true dawn, the time of Fajr. Many timetables show an imsak time about ten minutes earlier, as a safety margin. See Prayer times.
Sources for this section
  1. 1(Bukhari 1923)
  2. 2(Muslim 1096)
  3. 3(Abu Dawud 2345)
  4. 4(Bukhari 1921)
  5. 5(Quran 2:187)
  6. 6(Bukhari 1918)

Iftar: breaking the fast

Iftar is the meal that breaks the fast at sunset.

Hurry to break it

  • Once the sun has set, the fasting person breaks the fast7. Do not wait for the sky to go dark.
  • Nabi ﷺ said: people will stay upon good as long as they hurry to break the fast8.
  • Anas said: Nabi ﷺ broke his fast before praying Maghrib, with some fresh dates. If there were none, with dry dates. If there were none, he took a few sips of water9.
  • So start light, pray Maghrib, then have the main meal.

The dua when breaking the fast

Ibn Umar said that when Nabi ﷺ broke his fast, he said10:

Dhahabaz-zama'u, wabtallatil-'uruqu, wa thabatal-ajru in sha Allah.
The thirst is gone, the veins are wet, and the reward is sure, if Allah wills.
  • It speaks of the thirst being gone, so say it after the first sip. Say Bismillah before you eat.
  • Another well-known dua, Allahumma laka sumtu (O Allah, for You I fasted), comes in a weaker report. It is fine as a dua, but the one above has a sound chain.
  • The fasting person has two joys: one when he breaks his fast, and one when he meets his Lord11. Scholars recommend making dua at iftar.

Feeding a fasting person

  • Nabi ﷺ said: whoever gives a fasting person something to break the fast with gets the same reward, with nothing taken from the fasting person's reward12. A few dates or a plate for a neighbor count.
Sources for this section
  1. 7(Bukhari 1954)
  2. 8(Bukhari 1957)
  3. 9(Abu Dawud 2356)
  4. 10(Abu Dawud 2357)
  5. 11(Bukhari 1904)
  6. 12(Tirmidhi 807)

Tarawih: the night prayer of Ramadan

  • Tarawih is the night prayer in Ramadan, prayed after Isha, usually with the imam in the masjid.
  • Nabi ﷺ said: whoever prays at night in Ramadan with faith, hoping for reward, all their past sins are forgiven13.
  • It is a sunnah, not a duty, in the masjid or at home.

How many rakat, how to pray it, and the story of how Tarawih began are all in Witr and sunnah prayers.

Sources for this section
  1. 13(Bukhari 2009)

The last ten nights and Laylat al-Qadr

The best night of the year

Surah al-Qadr tells us that Allah sent down the Quran on Laylat al-Qadr, the Night of Decree. The angels and Jibril come down in it, and it is peace until dawn14. Laylat al-Qadr is better than a thousand months15: more than 83 years.

Nabi ﷺ said: whoever stands in prayer on Laylat al-Qadr with faith, hoping for reward, all their past sins are forgiven16.

When is it?

  • Nabi ﷺ said: look for Laylat al-Qadr in the odd nights of the last ten nights of Ramadan17. Islamic nights come before their day, so these are the nights before the 21st, 23rd, 25th, 27th and 29th days.
  • Ubayy ibn Ka'b was sure it was the 27th night. He said one sign is that the sun rises the next morning bright, without strong rays18.
  • Many scholars say it can move from year to year, and communities may start Ramadan on different days. So give all ten nights your best, and you will not miss it.

Nabi ﷺ once came out to tell the people the exact night, but it was taken from him because of a quarrel19.

The full story: why the night was kept hidden

Nabi ﷺ came out of his house to tell the Companions which night was Laylat al-Qadr. On the way, he found two Muslim men quarreling with each other20.

He said: I came out to tell you about Laylat al-Qadr, but so and so were quarreling, and the knowledge of it was taken away. Then he said: perhaps that is better for you. So look for it on the 29th, 27th and 25th21.

What this teaches us

  • Quarrels take away good. One argument cost the whole Ummah the exact date. Keep the peace, especially in Ramadan.
  • Hidden can be better. Because we do not know the night, we worship on many nights, not just one. That means more reward.
  • Look for it with effort. The odd nights of the last ten are the best hope.

What Nabi ﷺ did in the last ten

  • Aisha said: when the last ten came, he tightened his waist wrap (meaning he worked very hard), stayed up the night in worship, and woke his family22.
  • He worked harder in the last ten nights than at any other time23.
  • So pray at night, read Quran, make dhikr and long duas, and give charity. A woman on her period cannot pray, but she can make dua and dhikr all night.

The dua for this night

Aisha asked Nabi ﷺ: if I know which night is Laylat al-Qadr, what should I say? He said, say24:

Allahumma innaka 'afuwwun tuhibbul-'afwa fa'fu 'anni.
O Allah, You are the One who pardons, and You love to pardon, so pardon me.

Pardon means Allah wipes the sin away completely. Say it often, every night of the last ten.

Sources for this section
  1. 14(Quran 97:1-5)
  2. 15(Quran 97:3)
  3. 16(Bukhari 1901)
  4. 17(Bukhari 2017)
  5. 18(Muslim 762)
  6. 19(Bukhari 2023)
  7. 20(Bukhari 2023)
  8. 21(Bukhari 2023)
  9. 22(Bukhari 2024)
  10. 23(Muslim 1175)
  11. 24(Tirmidhi 3513)

Itikaf: staying in the masjid

Itikaf means staying in the masjid for a time, with the intention of worship: prayer, Quran, dhikr and dua, away from daily life.

  • Nabi ﷺ did itikaf in the last ten days of Ramadan every year until he died, and his wives did it after him25. In his last year, he did twenty days26.
  • It is a sunnah, required only if you vowed it27. Hanafis say the itikaf of the last ten is a sunnah on the community: if some people in an area do it, the rest are free of blame.

The basic rules

  • Intention in the heart, and staying in a masjid. For the last ten, most scholars say enter before sunset on the 20th day and leave when Eid is announced.
  • Which masjid? Hanafis and Hanbalis: a masjid where the daily prayers are held in congregation. Malikis and Shafi'is: any masjid. If a Friday falls in it, choose one that holds Jumuah.
  • Fasting and length: Malikis say itikaf needs a fast and lasts at least a day and a night. Shafi'is and Hanbalis say no fast is needed and even a short stay counts, since Umar vowed itikaf for one night28. Hanafis need a fast for a vowed itikaf. In Ramadan you are fasting anyway.
  • Going out: Nabi ﷺ did not go into the house except for a need29. Aisha said the sunnah is not to visit the sick or attend a funeral, and to go out only for what you must30: the toilet, wudu, a required ghusl, food if no one can bring it.
  • Breaks itikaf: intimacy31, and leaving without a need.
  • Fine: eating and sleeping in the masjid, and family visits. Safiyyah visited Nabi ﷺ in itikaf, and he walked her to the door32. Keep your phone for real needs.

Women and itikaf

  • The wives of Nabi ﷺ did itikaf in the masjid33. Once several of them set up tents at the same time. He did not like how it happened, and moved his own itikaf to Shawwal that year34.
  • Malikis, Shafi'is and Hanbalis: a woman's itikaf is in a masjid. Hanafis: in the prayer corner of her home, which is better for her.
  • A married woman needs her husband's agreement, and the place must be safe and private. If her period starts, she leaves the masjid. Ask your masjid if it has a women's area.
Sources for this section
  1. 25(Bukhari 2026)
  2. 26(Bukhari 2044)
  3. 27(Bukhari 2042)
  4. 28(Bukhari 2042)
  5. 29(Bukhari 2029)
  6. 30(Abu Dawud 2473)
  7. 31(Quran 2:187)
  8. 32(Bukhari 2035)
  9. 33(Bukhari 2026)
  10. 34(Bukhari 2033)

Eid al-Fitr

  • Ramadan ends with Eid al-Fitr, a day of thanks and joy. Fasting on Eid is not allowed35.
  • Nabi ﷺ did not go out to the Eid prayer until he had eaten some dates, an odd number36.
  • Pay zakat al-fitr before the Eid prayer. See Who receives zakat, and zakat al-fitr.

How to pray Eid, the takbirs and the other sunnahs of the day are in Special prayers.

Sources for this section
  1. 35(Bukhari 1991)
  2. 36(Bukhari 953)

Voluntary fasts through the year

After Ramadan, you can keep the habit going. None of these fasts are required. Pick what you can keep up.

FastWhenIts reward
Six days of ShawwalAny six days in Shawwal, the month after Ramadan, after Eid day. Together or apart.With Ramadan, like fasting the whole year37
Day of Arafah9th of Dhul Hijjah, for those not on HajjWipes out the sins of the year before and the year after38
Ashura10th of Muharram, best with the 9thWipes out the sins of the year before39
Mondays and ThursdaysEvery weekDeeds are shown to Allah on these days40
The white days13th, 14th and 15th of each Islamic month, when the moon is fullThree days a month is like fasting for life41
The fast of DawudOne day on, one day offThe best voluntary fast42
  • Six days of Shawwal: Nabi ﷺ said: whoever fasts Ramadan, then follows it with six days of Shawwal, it is as if he fasted for a lifetime43. Each good deed is worth ten, so 36 days are like 360. Right after Eid or spread out, all fine.
  • Arafah is for people not on Hajj. At Arafah, Nabi ﷺ drank a bowl of milk in front of the people44, so most scholars say pilgrims should not fast it.
  • Ashura: Nabi ﷺ planned to fast the 9th as well, but passed away before the next year came45. So scholars recommend the 9th and 10th. Some also mention the 10th and 11th. Only the 10th is still rewarded, though Hanafis say it is better not to fast it alone.
  • Mondays and Thursdays: deeds are shown to Allah on Monday and Thursday, and I love that my deeds are shown while I am fasting46. Monday is also the day he was born47.
  • Three days a month: Nabi ﷺ advised Abu Huraira to fast three days every month48. He told Abu Dharr: fast the 13th, 14th and 15th49. These are the white days, when the moon is full.
  • Dawud's fast: one day on, one day off. Nabi ﷺ said: there is no better fast than that50. Only for those who can keep it up without harm to health, work or family.
  • Also good: Muharram, Allah's month, the best fast after Ramadan51, and Sha'ban, when Nabi ﷺ fasted most outside Ramadan52.

The fast of Ashura goes back to Musa (Moses)53.

The full story: Musa, Ashura and the 9th

When Nabi ﷺ came to Madinah, he saw the Jews of the city fasting on the day of Ashura. He asked them why54.

They said: this is a good day. On this day Allah saved the Children of Israel from their enemy, Pharaoh, so Musa fasted it55.

Nabi ﷺ said: we have more right to Musa than you. So he fasted that day, and told the Muslims to fast it too56.

Years later, the Companions said: this is a day the Jews and Christians honor. Nabi ﷺ said: next year, if Allah wills, we will fast the 9th. But he passed away before the next year came57.

What this teaches us

  • All the prophets are ours. Muslims love Musa and thank Allah for saving him.
  • Our worship has its own shape. Adding the 9th made the Muslim fast different, while keeping the good of the day.
  • Thank Allah by fasting. A day Allah gave victory is a day to thank Him.
Sources for this section
  1. 37(Muslim 1164)
  2. 38(Muslim 1162)
  3. 39(Muslim 1162)
  4. 40(Tirmidhi 747)
  5. 41(Nasai 2420)
  6. 42(Bukhari 1976)
  7. 43(Muslim 1164)
  8. 44(Bukhari 1988)
  9. 45(Muslim 1134)
  10. 46(Tirmidhi 747)
  11. 47(Muslim 1162)
  12. 48(Bukhari 1981)
  13. 49(Tirmidhi 761)
  14. 50(Bukhari 1976)
  15. 51(Muslim 1163)
  16. 52(Bukhari 1969)
  17. 53(Bukhari 2004)
  18. 54(Bukhari 2004)
  19. 55(Bukhari 2004)
  20. 56(Bukhari 2004)
  21. 57(Muslim 1134)

Intention, and breaking a voluntary fast

  • Deciding in the morning: for a voluntary fast, you can decide during the day if you have not eaten since Fajr. Nabi ﷺ once asked Aisha for food. There was none, so he said: then I am fasting58. Hanafis allow this until before midday, Shafi'is until the sun passes its highest point, and Hanbalis even later. Malikis say every fast needs an intention from the night before.
  • Breaking it: allowed, for a guest, an invitation or tiredness. Nabi ﷺ said: the one fasting a voluntary fast is in charge of himself59. Another day he ate some food Aisha had saved for him, though he had started the day fasting60. When Abu ad-Darda ate with his guest Salman during a voluntary fast, Nabi ﷺ said Salman was right61.
  • Making it up: Shafi'is and Hanbalis say it is good but not required. Hanafis say make up one day. Malikis say do not break it without a real reason, and if you do, make it up.
  • This is only for voluntary fasts. A Ramadan, make-up or vowed fast must not be broken without a real excuse.
Sources for this section
  1. 58(Muslim 1154)
  2. 59(Tirmidhi 732)
  3. 60(Muslim 1154)
  4. 61(Bukhari 1968)

A wife's voluntary fast

  • Nabi ﷺ said: a woman should not fast when her husband is at home, except with his permission62. Scholars say this means voluntary fasts, because of his right to her company. If he is away, she does not need to ask.
  • Ramadan needs no one's permission. For make-up days, many scholars say agree a time with him while there is plenty of time. When the next Ramadan is close, she fasts them anyway.
  • A simple "I'm fasting Monday, is that okay?" is enough. A kind husband supports his wife's worship.
Sources for this section
  1. 62(Bukhari 5192)

Days you may not or should not fast

DayRulingWhy
Eid al-Fitr and Eid al-AdhaNot allowedNabi ﷺ forbade fasting on both Eids63
Days of tashriq (11th, 12th, 13th of Dhul Hijjah)Not allowed, except a pilgrim with no animal to sacrifice64Days of eating and drinking65
Friday on its ownDislikedFast a day before or after it too66
The day of doubt (30th of Sha'ban, moon not seen)Most scholars: do not fast itDo not start Ramadan a day or two early67
Every day, without a breakDislikedYour body and family have rights on you68
  • Friday: Nabi ﷺ found his wife Juwairiyah fasting on a Friday. She had not fasted the day before and did not plan to fast the next. He said: then break your fast69. But if Friday falls on a fast you keep anyway, like Arafah or your usual days, that is fine70.
  • The day of doubt: if the moon is hidden by cloud, complete thirty days of Sha'ban71. Ammar ibn Yasir said: whoever fasts the day of doubt has disobeyed Nabi ﷺ72. A fast you keep by habit, like a Monday, is fine73. On moon sighting, follow your local masjid or community: see Ramadan basics.
  • Every day: Nabi ﷺ said: whoever fasts every day for life has not fasted74. To three men who wanted to overdo worship, he said: I fast and I break my fast, I pray and I sleep, and I marry. Whoever turns away from my sunnah is not from me75. He also forbade wisal: fasting two days in a row with no food at night76.
If you are ill, pregnant, nursing, or a doctor tells you not to fast, voluntary fasts are not for now. Allah wants ease for you77. See When you cannot fast.
Sources for this section
  1. 63(Bukhari 1991)
  2. 64(Bukhari 1998)
  3. 65(Muslim 1141)
  4. 66(Bukhari 1985)
  5. 67(Bukhari 1914)
  6. 68(Bukhari 1977)
  7. 69(Bukhari 1986)
  8. 70(Muslim 1144)
  9. 71(Bukhari 1909)
  10. 72(Tirmidhi 686)
  11. 73(Bukhari 1914)
  12. 74(Bukhari 1977)
  13. 75(Bukhari 5063)
  14. 76(Bukhari 1962)
  15. 77(Quran 2:185)

Common questions

I have Ramadan days to make up. Can I fast the six days of Shawwal first, or do both in one fast?
Scholars differ.
  • Make up first: many scholars, and the Hanbalis, say this. The hadith says "whoever fasts Ramadan, then follows it with six"78, and Ramadan is not complete until you make it up. This is the safest way.
  • Shawwal first: other scholars allow it, because the time to make up is long. Aisha made up her days in Sha'ban79.
  • One fast for both: some later Shafi'i scholars say a make-up fast in Shawwal also earns the Shawwal reward. Most scholars say it counts only as the make-up.
If you missed many days, for example after giving birth, you may follow any of these views. Ask a scholar you trust if unsure.
I broke a voluntary fast at a family lunch. Is that a sin?
No. A voluntary fast is your choice, and Nabi ﷺ broke one himself80. Eating with family is a good reason. Hanafis say make up one day. Malikis say make it up if there was no real reason. Shafi'is and Hanbalis say making it up is good but not required.
The day of Arafah falls on a Friday. Can I fast it?
Yes. The dislike is for picking Friday out for its own sake. You are fasting for Arafah, not for Friday81. Fasting Thursday too, if you can, makes it even clearer.
What if Arafah or Ashura falls on a Saturday?
A hadith says do not fast on Saturday except a required fast82. Most scholars understand it as: do not single out Saturday for its own sake. So most say fast Arafah or Ashura even on a Saturday. A few scholars say avoid it. You may follow either view.
I am still eating when the Fajr adhan starts. What do I do?
Once you know Fajr has come, stop. Aim to finish a few minutes before the Fajr time on your timetable. See What breaks the fast.
I work night shifts in the last ten nights. Can I still get Laylat al-Qadr?
Yes. The reward is for worship on that night, wherever you are. Pray a few rakat on your break, make dhikr, and say the dua of Aisha83 often.
Sources for this section
  1. 78(Muslim 1164)
  2. 79(Bukhari 1950)
  3. 80(Muslim 1154)
  4. 81(Muslim 1144)
  5. 82(Abu Dawud 2421)
  6. 83(Tirmidhi 3513)

This guide teaches what most scholars hold and notes where the four schools differ. For your own situation, ask a scholar you trust or your local masjid.

All of Fiqh