The Sunnah of Fasting

In short
- Eat suhur, the meal before dawn, even if it is just a few dates. It has blessing in it. Nabi ﷺ ate it late, a few minutes before 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 forgive 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. You do not have to fast any of these. They are extra.
- Do not fast on the two Eids or the days of tashriq. Do not fast a Friday on its own, and do not fast every single day without a break.
What will you learn here?
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 (things he did that bring reward). If you leave them, your fast still counts. If you do them, you get more blessing and reward.
The basics are in Ramadan basics, What breaks the fast and When you cannot fast.
Why eat suhur, and how late can you eat?
Suhur is the meal you eat at night, before dawn, on a day you plan to fast.
- Nabi ﷺ said: eat suhur, because there is blessing in it1.
- He said one thing that makes our fast different from the fast of the People of the Book (Jews and Christians) is eating suhur2.
- Even a little counts. He said: dates make a good suhur for a believer3.
- Suhur is a sunnah, not a must. If you sleep through it, your fast still counts.
Eat it late, and stop at Fajr
- Zaid ibn Thabit ate suhur with Nabi ﷺ. Then they stood up for Fajr. The gap between the two was about the time it takes to recite fifty ayat4. That is only a few minutes. So eat near the end of the night, not at midnight.
- Allah says: eat and drink until you can clearly tell the white thread of dawn from the black thread of night5. Bilal used to call an early adhan while it was still night. Nabi ﷺ said: keep eating and drinking until Ibn Umm Maktum calls the adhan, which he called at dawn6.
- So the fast starts at true dawn, when Fajr time begins. Many timetables show an imsak time about ten minutes earlier. It is only a safety margin. See Prayer times.
Sources for this section
- 1(Bukhari 1923)
- 2(Muslim 1096)
- 3(Abu Dawud 2345)
- 4(Bukhari 1921)
- 5(Quran 2:187)
- 6(Bukhari 1918)
How do you break the fast?
Iftar is the meal you eat at sunset to end the fast.
Do not wait
- Once the sun has set, the fast is over7. Do not wait for the sky to go dark.
- Nabi ﷺ said: people will keep doing well as long as they are quick to break the fast8.
- Anas said: Nabi ﷺ broke his fast before praying Maghrib, with a few fresh dates. If there were none, he had dry dates. If there were none, he took a few sips of water9.
- So start with something light, pray Maghrib, then eat your main meal.
What to say when you break the fast
Ibn Umar said that when Nabi ﷺ broke his fast, he said10:
The thirst is gone, the body is wet again, and the reward is sure, if Allah wills.
- It talks about the thirst being gone, so say it after your first sip. Say Bismillah before you start eating.
- Another well-known dua is Allahumma laka sumtu (O Allah, for You I fasted). It comes from a weaker report. You can still say it as a dua, but the one above is more reliable.
- The fasting person has two moments of joy: one when he breaks his fast, and one when he meets his Lord11. Scholars say it is good to make dua at iftar.
Give food to someone who is fasting
- Nabi ﷺ said: whoever gives a fasting person something to break their fast gets the same reward as them, and the fasting person loses nothing12. A few dates or a plate of food for a neighbor counts.
Sources for this section
- 7(Bukhari 1954)
- 8(Bukhari 1957)
- 9(Abu Dawud 2356)
- 10(Abu Dawud 2357)
- 11(Bukhari 1904)
- 12(Tirmidhi 807)
What is Tarawih?
- Tarawih is the night prayer of Ramadan. It is prayed after Isha, usually behind 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 must. You can pray it in the masjid or at home.
How many rakat to pray, how to pray it, and how Tarawih began are all in Witr and sunnah prayers.
Sources for this section
- 13(Bukhari 2009)
How do you find 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 on that night, and it is peace until dawn14. Laylat al-Qadr is better than a thousand months15. That is more than 83 years.
Nabi ﷺ said: whoever prays on Laylat al-Qadr with faith, hoping for reward, all their past sins are forgiven16.
Which night is it?
- Nabi ﷺ said: look for Laylat al-Qadr in the odd nights of the last ten nights of Ramadan17. In Islam, the night comes before its 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 next morning the sun rises bright, but its rays are not strong18.
- Many scholars say the night can change from year to year. Also, 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 people the exact night. But the knowledge was taken from him because two people were arguing19.
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 arguing with each other20.
He said: I came out to tell you about Laylat al-Qadr, but so and so were arguing, and the knowledge of it was taken away. Then he said: maybe that is better for you. So look for it on the 29th, 27th and 25th21.
What this teaches us
- Arguments take away good. One argument cost the whole Ummah the exact date. Keep the peace, most of all in Ramadan.
- Not knowing can be better. Because we do not know the night, we worship on many nights, not just one. That means more reward.
- Make an effort to find it. The odd nights of the last ten are your best chance.
What did Nabi ﷺ do in the last ten nights?
- Aisha said: when the last ten nights came, he tightened his waist wrap (meaning he worked very hard), stayed awake at night to worship, and woke up his family22.
- He worked harder in the last ten nights than at any other time23.
- So pray at night, read Quran, remember Allah (dhikr), make long duas, and give charity. A woman on her period cannot pray salah, but she can make dua and dhikr all night.
What to say on this night
Aisha asked Nabi ﷺ: if I know which night is Laylat al-Qadr, what should I say? He told her to say24:
O Allah, You forgive, and You love to forgive, so forgive me.
Here, forgive means Allah wipes the sin away completely, as if it never happened. Say it often, every night of the last ten.
Sources for this section
- 14(Quran 97:1-5)
- 15(Quran 97:3)
- 16(Bukhari 1901)
- 17(Bukhari 2017)
- 18(Muslim 762)
- 19(Bukhari 2023)
- 20(Bukhari 2023)
- 21(Bukhari 2023)
- 22(Bukhari 2024)
- 23(Muslim 1175)
- 24(Tirmidhi 3513)
What is itikaf, and how do you do it?
Itikaf means staying in the masjid for a time, with the aim of worship. You spend the time in prayer, Quran, dhikr and dua, away from daily life.
- Nabi ﷺ did itikaf in the last ten days of Ramadan every year until he died. His wives did it after him25. In his last year, he did twenty days26.
- It is a sunnah. It only becomes a must if you made a vow (a promise to Allah) to do it27. Hanafis say itikaf in the last ten is a sunnah on the whole community: if some people in an area do it, the others are not blamed.
The basic rules
- You need an intention in your heart, and you must stay in a masjid. For the last ten, most scholars say go in before sunset on the 20th day, and leave when Eid is announced.
- Which masjid? Hanafis and Hanbalis: a masjid where the five daily prayers are prayed together. Malikis and Shafi'is: any masjid. If a Friday falls during your itikaf, choose a masjid that holds Jumuah.
- Do you need to fast, and how long? Malikis say itikaf needs a fast and lasts at least a day and a night. Shafi'is and Hanbalis say you do not need to fast, and even a short stay counts, because Umar vowed itikaf for one night28. Hanafis say a vowed itikaf needs a fast. In Ramadan you are fasting anyway.
- Can you go out? Nabi ﷺ did not go into the house except when he needed to29. Aisha said the sunnah is not to visit the sick or go to a funeral, and to go out only for what you must30. That means the toilet, wudu, a ghusl you must make, and food if no one can bring it to you.
- What ends itikaf: sex with your spouse31, and leaving the masjid without a real need.
- What is fine: eating and sleeping in the masjid, and visits from family. Safiyyah visited Nabi ﷺ during his itikaf, and he walked her to the door32. Use your phone only for real needs.
Can women do itikaf?
- Yes. The wives of Nabi ﷺ did itikaf in the masjid33. Once, several of them set up tents at the same time. He did not like the way it happened, and he moved his own itikaf to Shawwal that year34.
- Malikis, Shafi'is and Hanbalis: a woman does itikaf in a masjid. Hanafis: she does it in the prayer corner of her home, and that is better for her.
- A married woman needs her husband to agree. The place must be safe and private. If her period starts, she leaves the masjid. Ask your masjid if it has a space for women.
Sources for this section
- 25(Bukhari 2026)
- 26(Bukhari 2044)
- 27(Bukhari 2042)
- 28(Bukhari 2042)
- 29(Bukhari 2029)
- 30(Abu Dawud 2473)
- 31(Quran 2:187)
- 32(Bukhari 2035)
- 33(Bukhari 2026)
- 34(Bukhari 2033)
What happens on Eid al-Fitr?
- Ramadan ends with Eid al-Fitr, a day of thanks and joy. You may not fast on Eid35.
- Nabi ﷺ did not leave for the Eid prayer until he had eaten some dates, an odd number of them36.
- Pay zakat al-fitr (a small charity for the poor) before the Eid prayer. See Who receives zakat, and zakat al-fitr.
How to pray Eid, the extra Allahu Akbars, and the other sunnahs of the day are in Special prayers.
Sources for this section
- 35(Bukhari 1991)
- 36(Bukhari 953)
Which extra fasts can you keep through the year?
After Ramadan, you can keep the habit going. You do not have to fast any of these days. Pick the ones you can keep up.
| Fast | When | Its reward |
|---|---|---|
| Six days of Shawwal | Any six days in Shawwal, the month after Ramadan, but not Eid day. In a row or spread out. | Together with Ramadan, it is like fasting the whole year37 |
| Day of Arafah | 9th of Dhul Hijjah, for people not on Hajj | Wipes out the sins of the year before and the year after38 |
| Ashura | 10th of Muharram, best with the 9th as well | Wipes out the sins of the year before39 |
| Mondays and Thursdays | Every week | Your deeds are shown to Allah on these days40 |
| The white days | 13th, 14th and 15th of each Islamic month, when the moon is full | Three days a month is like fasting your whole life41 |
| The fast of Dawud | Fast one day, eat the next | The best extra 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, both are fine.
- Arafah is for people not on Hajj. At Arafah, Nabi ﷺ drank a bowl of milk in front of everyone44. So most scholars say pilgrims should not fast that day.
- Ashura: Nabi ﷺ planned to fast the 9th as well, but he passed away before the next year came45. So scholars say it is good to fast the 9th and 10th. Some also mention the 10th and 11th. Fasting only the 10th still brings reward, but Hanafis say it is better not to fast it alone.
- Mondays and Thursdays: Nabi ﷺ said: 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 ﷺ told 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: fast one day, eat the next. Nabi ﷺ said: there is no better fast than that50. It is only for people who can keep it up without harming their health, work or family.
- Also good: fasting in Muharram, which he called Allah's month. It is the best month to fast after Ramadan51. And Sha'ban, when Nabi ﷺ fasted more than in any other month 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 on it55.
Nabi ﷺ said: we are closer to Musa than you are. 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 way. Adding the 9th made the Muslim fast different, while keeping the good of the day.
- Thank Allah by fasting. A day when Allah gave victory is a day to thank Him.
Sources for this section
- 37(Muslim 1164)
- 38(Muslim 1162)
- 39(Muslim 1162)
- 40(Tirmidhi 747)
- 41(Nasai 2420)
- 42(Bukhari 1976)
- 43(Muslim 1164)
- 44(Bukhari 1988)
- 45(Muslim 1134)
- 46(Tirmidhi 747)
- 47(Muslim 1162)
- 48(Bukhari 1981)
- 49(Tirmidhi 761)
- 50(Bukhari 1976)
- 51(Muslim 1163)
- 52(Bukhari 1969)
- 53(Bukhari 2004)
- 54(Bukhari 2004)
- 55(Bukhari 2004)
- 56(Bukhari 2004)
- 57(Muslim 1134)
Can you decide to fast in the morning, or stop halfway?
- Deciding in the morning: for an extra fast, you can decide during the day, as long as you have not eaten or drunk since Fajr. Nabi ﷺ once asked Aisha for food. There was none, so he said: then I am fasting58. Hanafis allow this until a little before midday. Shafi'is allow it until the sun reaches its highest point. Hanbalis allow it even later. Malikis say every fast needs an intention from the night before.
- Stopping halfway: you may end an extra fast, for a guest, an invitation, or because you are tired. Nabi ﷺ said: the person keeping an extra fast is free to choose59. Another day, he started the day fasting, then ate some food Aisha had kept for him60. Abu ad-Darda was keeping an extra fast, and he ate with his guest Salman. Nabi ﷺ said Salman was right61.
- Do you make it up? Shafi'is and Hanbalis say it is good, but you do not have to. Hanafis say make up one day. Malikis say do not stop without a real reason, and if you do, make it up.
- This is only for extra fasts. Do not break a Ramadan fast, a make-up fast or a fast you vowed without a real excuse.
Sources for this section
- 58(Muslim 1154)
- 59(Tirmidhi 732)
- 60(Muslim 1154)
- 61(Bukhari 1968)
Does a wife need to ask before an extra fast?
- Nabi ﷺ said: a woman should not fast when her husband is at home, unless he agrees62. Scholars say this is about extra fasts, because he has a right to spend time with her. If he is away, she does not need to ask.
- Ramadan needs no one's permission. For make-up days, many scholars say she should agree a time with him while there is plenty of time left. 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
- 62(Bukhari 5192)
Which days should you not fast?
| Day | The rule | Why |
|---|---|---|
| Eid al-Fitr and Eid al-Adha | Not allowed | Nabi ﷺ forbade fasting on both Eids63 |
| Days of tashriq (11th, 12th, 13th of Dhul Hijjah) | Not allowed, except for a pilgrim who has no animal to sacrifice64 | They are days of eating and drinking65 |
| Friday on its own | Better to avoid | Fast the day before or the day after as well66 |
| The day of doubt (30th of Sha'ban, when the new moon was not seen) | Most scholars: do not fast it | Do not start Ramadan a day or two early67 |
| Every day, with no break | Better to avoid | Your body and your family have rights over 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 day. He said: then stop your fast69. But if Friday is a day you would fast anyway, like Arafah or your usual days, that is fine70.
- The day of doubt: if clouds hide the moon, finish thirty days of Sha'ban71. Ammar ibn Yasir said: whoever fasts the day of doubt has disobeyed Nabi ﷺ72. A fast you keep out of habit, like a Monday, is fine73. For moon sighting, follow your local masjid or community. See Ramadan basics.
- Every day: Nabi ﷺ said: whoever fasts every day for life has not really fasted74. Three men wanted to overdo worship. He told them: I fast and I eat, 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 without eating at night76.
Sources for this section
- 63(Bukhari 1991)
- 64(Bukhari 1998)
- 65(Muslim 1141)
- 66(Bukhari 1985)
- 67(Bukhari 1914)
- 68(Bukhari 1977)
- 69(Bukhari 1986)
- 70(Muslim 1144)
- 71(Bukhari 1909)
- 72(Tirmidhi 686)
- 73(Bukhari 1914)
- 74(Bukhari 1977)
- 75(Bukhari 5063)
- 76(Bukhari 1962)
- 77(Quran 2:185)
Common questions
- I have Ramadan days to make up. Can I fast the six days of Shawwal first, or count one fast for both?
- 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 your Ramadan is not complete until you make up the missed days. This is the safest way.
- Shawwal first: other scholars allow it, because you have a long time to make up days. 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 gets the Shawwal reward. Most scholars say it only counts as the make-up.
- I stopped an extra fast to eat at a family lunch. Is that a sin?
- No. An extra fast is your choice, and Nabi ﷺ stopped 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 you do not have to.
- The day of Arafah falls on a Friday. Can I fast it?
- Yes. What is better to avoid is picking Friday just because it is Friday. You are fasting for Arafah, not for Friday81. If you can, fast Thursday too, to make it even clearer.
- What if Arafah or Ashura falls on a Saturday?
- A hadith says do not fast on Saturday except for a fast you must keep82. Most scholars take it to mean: do not pick Saturday just because it is Saturday. 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 time has come, stop eating. Try 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, remember Allah, and say the dua Nabi ﷺ taught Aisha83 often.
Sources for this section
- 78(Muslim 1164)
- 79(Bukhari 1950)
- 80(Muslim 1154)
- 81(Muslim 1144)
- 82(Abu Dawud 2421)
- 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.