---
title: "Sunnah Prayers: The 12 Daily Rakats, Nafl Prayers and When Not to Pray"
description: "The 12 sunnah prayers before and after the five daily prayers, the nafl prayers you can add, and the three times of day when voluntary prayer is not prayed."
canonical: "https://salahflow.com/blog/sunnah-prayers"
last-updated: "2026-11-24"
author: "The Salah Flow team"
language: "en-GB"
---

# Sunnah Prayers: The 12 Daily Rakats, Nafl Prayers and When Not to Pray

> The 12 sunnah prayers before and after the five daily prayers, the nafl prayers you can add, and the three times of day when voluntary prayer is not prayed.

_2026-11-24 · 14 min read · The Salah Flow team_

Sunnah prayers are the voluntary prayers a Muslim prays on top of the five obligatory ones. The most important are twelve rakats prayed with the obligatory prayers every day: two before Fajr, four before Dhuhr and two after it, two after Maghrib and two after Isha. Beyond those you can pray for a reason, such as on entering a mosque or after wudu, and at almost any time you like, apart from three times of day when voluntary prayer isn't prayed. This guide goes through each kind, with the hadith behind it, and the places where practice differs. The lessons it draws on are credited at the end.

## What "sunnah" means here

The word *sunnah* has two meanings, and mixing them up causes confusion.

- **The way of the Prophet ﷺ:** everything he said, did or approved. In this sense the five daily prayers are sunnah too, because he prayed them, and yet they are obligatory.
- **A ruling:** something recommended. You're rewarded for doing it, and you aren't sinful for leaving it.

Sunnah prayers are sunnah in the second sense. Another name for them is *nafl* (plural *nawafil*), which means something additional. Allah uses that word for the night prayer:

> And from [part of] the night, pray with it [i.e., recitation of the Qur'ān] as additional [worship] for you; it is expected that your Lord will resurrect you to a praised station. ([Qur'an 17:79](https://quran.com/17:79), Sahih International)

Start with the obligatory prayers. If you're still building the habit of the five, our guide to [the five daily prayers](/blog/five-daily-prayers-explained) comes first; the sunnah prayers are built on top of them.

## The three kinds of voluntary prayer

Voluntary prayers fall into three kinds, and the kind decides when you pray it.

1. **Tied to an obligatory prayer.** The sunnah prayers before or after a fard prayer, such as the two before Fajr. They have a set number and a set time.
2. **With a reason.** Prayed because something happened: you entered a mosque, you made wudu, there was an eclipse.
3. **Unrestricted.** Prayed simply because you want to pray more. There's no set number: you can keep praying as much as you like, as long as it isn't one of the three times covered below.

*Figure: three kinds of voluntary prayer. Tied to an obligatory prayer: pray it within that prayer's time. With a reason, such as entering a mosque: pray it when the reason comes, and views differ on the three forbidden times. Unrestricted: as much as you like, but not at the three times when voluntary prayer isn't prayed.*

## The 12 regular sunnah prayers (rawatib)

The sunnah prayers tied to the five obligatory prayers are called the *rawatib*, the regular ones. They're separate from the obligatory prayer: the two before Fajr aren't part of Fajr's two, they're two more. The Prophet ﷺ said:

> He who observed twelve voluntary rak'ahs, a house will be built for him in Paradise. ([Sahih Muslim 728b](https://sunnah.com/muslim:728b))

Another narration names them:

> Whoever persists in praying twelve rak'ahs each day and night will enter Paradise: Four before Zuhr and two after, two rak'ahs after Maghrib, two rak'ahs after Isha' and two rak'ahs before Fajr. ([Sunan an-Nasa'i 1794](https://sunnah.com/nasai:1794))

Darussalam grades that narration hasan. Set out by prayer:

| Prayer | Before | After |
|---|---|---|
| Fajr | 2 | none |
| Dhuhr | 4 | 2 |
| Asr | none | none |
| Maghrib | none | 2 |
| Isha | none | 2 |

These are the *confirmed* sunnah prayers (*sunnah mu'akkadah*): the ones the Prophet ﷺ kept up regularly when he wasn't travelling.

*Figure: the twelve regular sunnah rakats, one tile for every two: Fajr 2 before; Dhuhr 4 before and 2 after; Maghrib 2 after; Isha 2 after. A thin tile before Asr marks the four rakats there, which are recommended but not one of the twelve.*

### The two rakats before Fajr

These are the most important of the twelve. The Prophet ﷺ said, "The two rak'ahs at dawn are better than this world and what it contains." ([Sahih Muslim 725a](https://sunnah.com/muslim:725a)) 'A'ishah (RA) said:

> The Prophet (ﷺ) was never more regular and particular in offering any Nawafil than the two rak`at (Sunna) of the Fajr prayer. ([Sahih al-Bukhari 1163](https://sunnah.com/bukhari:1163))

They're the one regular sunnah he kept even on a journey (see "Sunnah prayers when travelling" below).

### Four before Dhuhr, two after

'A'ishah (RA) said, "The Prophet (ﷺ) never missed four rak`at before the Zuhr prayer and two rak`at before the Fajr prayer." ([Sahih al-Bukhari 1182](https://sunnah.com/bukhari:1182))

This guide follows praying the four before Dhuhr as two rakats, salam, then two more and salam. In the Hanafi school they're prayed as four together with one salam, so if you follow that school, pray them its way.

If you'd like more, pray four after Dhuhr instead of two. The Prophet ﷺ said, "If anyone keeps on praying regularly four rak'ahs before and four after the noon prayer, he will not enter the Hell-fire." ([Sunan Abi Dawud 1269](https://sunnah.com/abudawud:1269)) Al-Albani grades it sahih. You simply add two rakats to the two you already pray after Dhuhr.

### Two after Maghrib, two after Isha

Two rakats after each, prayed once the obligatory prayer is finished. The two after Isha are separate from witr (see "The night prayer and witr" below).

## Other recommended sunnah prayers

Some sunnah prayers are encouraged but aren't among the confirmed twelve. They're good to pray, and there's no blame in leaving them.

### Four before Asr

The Prophet ﷺ said, "May Allah show mercy to a man who prays four rak'ahs before the afternoon prayer." ([Sunan Abi Dawud 1271](https://sunnah.com/abudawud:1271)) Al-Albani grades it hasan.

The Prophet ﷺ didn't keep these up regularly, so views differ on making them a daily habit. One view is that you shouldn't, so people don't take them for a confirmed sunnah. The other is that you may, because he encouraged them.

### Two between the adhan and the iqamah

There's a prayer between every adhan and iqamah, for whoever wants it:

> Allah's Messenger (ﷺ) said thrice, "There is a prayer between the two Adhans (Adhan and Iqama)," and added, "For the one who wants to pray." ([Sahih al-Bukhari 624](https://sunnah.com/bukhari:624))

That includes two rakats before Maghrib. The Prophet ﷺ said "Pray before the Maghrib (compulsory) prayer." three times, and the third time added, "Whoever wants to offer it can do so." ([Sahih al-Bukhari 1183](https://sunnah.com/bukhari:1183))

### Four before Isha

There's no authentic hadith of the Prophet ﷺ praying these, though some of the Companions are reported to have done so. Practice differs: some pray them on the strength of the Companions, and others leave them because the Prophet ﷺ didn't pray them.

## Voluntary prayers with a reason

These are prayed when their reason comes: you enter a mosque, you make wudu, there's an eclipse or a funeral, or you've just finished tawaf. Whether they can be prayed at the forbidden times is covered below.

### Entering the mosque (tahiyyat al-masjid)

> When any one of you enters the mosque, he should observe two rak'ahs (of Nafl prayer) before sitting. ([Sahih Muslim 714a](https://sunnah.com/muslim:714a))

Views differ on how binding this is. One view is that the two rakats are obligatory before you sit down, because the Prophet ﷺ commanded them. The other is that they're a confirmed sunnah. On both views, pray them before you sit down.

If the first thing you pray on arriving is a sunnah prayer, such as the two before Fajr or the four before Dhuhr, those count for the greeting of the mosque as well. You don't need to pray two extra.

### Two rakats after wudu

'Uthman (RA) showed how the Prophet ﷺ made wudu, then reported him saying:

> If anyone performs ablution like that of mine and offers a two-rak'at prayer during which he does not think of anything else (not related to the present prayer) then his past sins will be forgiven. ([Sahih al-Bukhari 159](https://sunnah.com/bukhari:159))

When the Prophet ﷺ asked Bilal (RA) about his best deed, Bilal said, "I did not do anything worth mentioning except that whenever I performed ablution during the day or night, I prayed after that ablution as much as was written for me." ([Sahih al-Bukhari 1149](https://sunnah.com/bukhari:1149))

These two rakats are recommended. If you leave them, there's no sin.

## Duha prayer: when to pray it and how many rakats

Duha is a voluntary prayer in the morning. Its time starts about 10 to 15 minutes after sunrise, once the sun is up, and ends about 10 minutes before Dhuhr comes in. The best time is late in that window, when the day is hot. The Prophet ﷺ said, "The prayer of those who are penitent is observed when your weaned camels feel the heat of the sun." ([Sahih Muslim 748a](https://sunnah.com/muslim:748a))

The least you can pray is two rakats, and they carry a lot. The Prophet ﷺ said, "In the morning charity is due from every bone in the body of every one of you." ([Sahih Muslim 720](https://sunnah.com/muslim:720)) Every glorification of Allah is a charity, he went on, and so is enjoining good, and at the end of that hadith: "two rak'ahs which one prays in the forenoon will suffice." ([Sahih Muslim 720](https://sunnah.com/muslim:720))

## The night prayer and witr

The best voluntary prayer is the night prayer. The Prophet ﷺ said that "the most excellent prayer after what is prescribed is prayer during the night." ([Sahih Muslim 1163a](https://sunnah.com/muslim:1163a)) It's prayed two rakats at a time, with no fixed number, and ended with witr, which is a sunnah, not an obligation. Our guide to [how to pray tahajjud](/blog/how-to-pray-tahajjud) covers when to pray it, how many rakats and how to end with witr.

## Where to pray sunnah prayers

Pray the obligatory prayers in congregation, and the sunnah prayers at home if you can. The Prophet ﷺ said:

> You should pray in your houses, for the best prayer of a person is that which he prays in his house except the compulsory prayers. ([Sahih al-Bukhari 731](https://sunnah.com/bukhari:731))

Praying them in the mosque is still fine, and on arriving it counts as the greeting of the mosque.

## Sunnah prayers when travelling

On a journey the Prophet ﷺ left the regular sunnah prayers of Dhuhr, Maghrib and Isha, but kept the two before Fajr and the night prayer with witr. So when you're travelling and shortening your prayers, the better course is to do the same.

Other voluntary prayers go on as usual: duha, the two rakats after wudu and the night prayer.

## Making up a missed sunnah prayer

**The two before Fajr.** If you missed them, pray them after the obligatory Fajr prayer, or wait until the sun has risen. A man was seen praying after the dawn prayer in congregation, and the Prophet ﷺ asked what he was doing:

> The man replied: I did not pray the two rak'ahs before the dawn prayer. Hence I offered them now. The Messenger of Allah (ﷺ) kept silent. ([Sunan Abi Dawud 1267](https://sunnah.com/abudawud:1267))

Al-Albani grades it sahih.

**The others.** Views differ:

- One view is that you can make up a regular sunnah you missed for a good reason, even after its time. Umm Salamah (RA) saw the Prophet ﷺ pray two rakats after Asr, though he'd forbidden prayer then. He explained that a delegation had kept him busy, so he hadn't prayed the two after Dhuhr: "These (two rak`at that I have just prayed) are for those (missed) ones." ([Sahih al-Bukhari 1233](https://sunnah.com/bukhari:1233))
- The other is that a regular sunnah lapses once its time has passed, except the two before Fajr, and the four before Dhuhr, which you pray after the obligatory Dhuhr with the two that follow it.

A sunnah prayer is never something you owe, so there's nothing to make up out of fear. For obligatory prayers you missed, see [making up missed prayers](/blog/making-up-missed-prayers-qada).

## The forbidden times for voluntary prayer

There are times of day when you don't pray a voluntary prayer that has no reason. The Prophet ﷺ said:

> There is no prayer after the morning prayer till the sun rises, and there is no prayer after the `Asr prayer till the sun sets. ([Sahih al-Bukhari 586](https://sunnah.com/bukhari:586))

And 'Uqbah ibn 'Amir (RA) said:

> There were three times at which Allah's Messenger (ﷺ) forbade us to pray, or bury our dead: When the sun begins to rise till it is fully up, when the sun is at its height at midday till it passes over the meridian, and when the sun draws near to setting till it sets. ([Sahih Muslim 831](https://sunnah.com/muslim:831))

Put together, that gives three stretches of the day:

1. **After you've prayed Fajr, until the sun has fully risen.** That's about 10 to 15 minutes after sunrise, when duha begins.
2. **When the sun is at its height, just before Dhuhr.** It's short: it starts a few minutes before Dhuhr comes in (count it as 10, to be safe) and ends once the sun has passed the middle of the sky.
3. **After you've prayed Asr, until the sun has set.**

Some count these as five, naming the sunrise and the sunset on their own. They cover the same stretches of the day.

Why these times? Because they are when sun-worshippers bow to the sun, and a Muslim avoids looking like them in worship, whatever is in their heart. The Prophet ﷺ said:

> Observe the dawn prayer, then stop praying when the sun is rising till it is fully up, for when it rises it comes up between the horns of Satan, and the unbelievers prostrate themselves to it at that time. ([Sahih Muslim 832](https://sunnah.com/muslim:832))

**Missed obligatory prayers.** An obligatory prayer you overslept or forgot is prayed as soon as you remember: "If anyone forgets a prayer he should pray that prayer when he remembers it." ([Sahih al-Bukhari 597](https://sunnah.com/bukhari:597)) That holds at any time of day, except on the view below that no prayer at all is started at the forbidden times. The prostration of recitation and the prostration of thanks aren't prayers, so they aren't restricted.

## Prayers with a reason at the forbidden times

This is where practice differs most.

- **One view: a prayer with a reason may be prayed then.** The command to pray two rakats before sitting in a mosque has no exception for these times, and the Prophet ﷺ himself made up a missed sunnah after Asr ([Sahih al-Bukhari 1233](https://sunnah.com/bukhari:1233)). On this view you can pray the greeting of the mosque, a missed obligatory prayer, the funeral prayer, the eclipse prayer and the two after tawaf at those times. What's left out is only the unrestricted prayer, prayed for no reason.
- **The other view: no voluntary prayer is started at those times, even one with a reason.** Some go further and hold that no prayer at all is started at those times.

If you follow a school, follow its view here, and if you're unsure, ask your local imam. Either way, it isn't something to argue over in the mosque. If you see someone praying at one of these times, they may well be following the first view.

## A simple place to start

If the twelve feel like a lot, start with the two before Fajr, the ones the Prophet ﷺ never left, and add the rest one prayer at a time.

Salah Flow is a free, ad-free prayer tracker for the five daily prayers, made by a husband-and-wife team of reverts. It gives you prayer times, the Qibla and adhan alerts, and shows your consistency over time, so the obligatory prayers that the sunnah prayers are built on become steady first.

## Credits

The explanations in this guide are our own retelling of these lessons, which you can hear directly.

Abdul Rahman Hassan:

- [Are You Praying Correctly? Wudu & Salah Explained](https://www.youtube.com/watch?v=D7GseTY3__Y) (AMAR), teaching the *Nadhm al-Safina*: the kinds of voluntary prayer (from 2:59:01) and the times when prayer is forbidden (from 3:56:36)

Assim al-Hakeem:

- [What are the sunnah rawatib prayers?](https://www.youtube.com/watch?v=PsDopRznl2U)
- [The obligatory and sunnah prayers](https://www.youtube.com/watch?v=ny73kP0XSSs)
- [Two meanings of sunnah, and the greeting of the mosque](https://www.youtube.com/watch?v=NaJYW5da6Nc)
- [Four rakats before Asr and before Isha](https://www.youtube.com/watch?v=3KvBSwV0IsQ)
- [Praying four rakats before Asr](https://www.youtube.com/watch?v=MNiGlj9pmxM)
- [The sunnah of Dhuhr: four together or two and two?](https://www.youtube.com/watch?v=LphMPf3Qdbs)
- [Twelve rakats, and four before and after Dhuhr](https://www.youtube.com/watch?v=wKnmtDIV-lE)
- [The best time to pray duha](https://www.youtube.com/watch?v=mPuBkOni3CU)
- [The time of duha, and the forbidden time at midday](https://www.youtube.com/watch?v=T3Sh0jIfO84)
- [Two rakats of duha and the charity due on every joint](https://www.youtube.com/watch?v=7VaSa93yBr8)
- [Praying sunnah prayers at home](https://www.youtube.com/watch?v=VVVRgI0LBds)
- [Sunnah prayers when travelling](https://www.youtube.com/watch?v=nLmLXTk5VBM)
- [Making up the sunnah of Fajr after the obligatory prayer](https://www.youtube.com/watch?v=_uSYXwbmdec)
- [Making up a sunnah prayer after its time](https://www.youtube.com/watch?v=Wa8Fs0lMGBk)
- [The forbidden times for voluntary prayer](https://www.youtube.com/watch?v=24l8xHOSnIE)
- [The greeting of the mosque and prayers with a reason at the forbidden times](https://www.youtube.com/watch?v=vxyRnBj0jxM)

Ibn Baz, on binbaz.org.sa (in Arabic):

- [The regular sunnah prayers before and after each prayer](https://binbaz.org.sa/byreference/fatwas/9856)
- [The regular sunnah prayers and their times](https://binbaz.org.sa/byreference/fatwas/14870)
- [The regular sunnah prayers when travelling](https://binbaz.org.sa/byreference/fatwas/12291)
- [Making up the regular sunnah prayers](https://binbaz.org.sa/byreference/fatwas/4391)
- [Leaving the two rakats after wudu](https://binbaz.org.sa/byreference/fatwas/9345)
- [The two rakats after wudu](https://binbaz.org.sa/byreference/fatwas/18836)
- [Prayers with a reason at the forbidden times](https://binbaz.org.sa/byreference/fatwas/10183)
- [The greeting of the mosque at the forbidden times](https://binbaz.org.sa/byreference/fatwas/5251)
- [The greeting of the mosque: obligatory or sunnah?](https://binbaz.org.sa/byreference/fatwas/30920)

## More from Salah Flow

- [Blog](https://salahflow.com/blog.md): Guidance for building a salah habit: starting to pray, the five daily prayers, making up missed prayers and more.
- [llms.txt](https://salahflow.com/llms.txt): A guide to this site for AI agents

_This is the Markdown version of https://salahflow.com/blog/sunnah-prayers — send `Accept: text/markdown` to that URL to get this directly._
