Five prayers a day are obligatory. But when a man asked the Prophet ﷺ whether there was any more prayer than those five, the answer opened a door rather than closing it:
"No, but if you want to offer the Nawafil prayers (you can)."
— Sahih al-Bukhari 461
Nawafil (singular nafl) are voluntary prayers. The ones the Prophet ﷺ kept regularly are usually called sunnah prayers — "sunnah" meaning his established practice. They are recommended, not required: praying them is rewarded, and leaving them is not a sin.232425 They are prayed exactly like any other prayer — see How to Pray — usually as units of two rak'ahs, quietly, and on your own.
The sunnah prayers around the fard (rawatib)
The most important are the rawatib — the "regular" sunnah prayers attached to the five daily prayers, prayed just before or just after the obligatory one. Umm Habibah reported the Prophet ﷺ saying:
"A house will be built in Paradise, for anyone who prays in a day and a night twelve rak'ahs."
— Sahih Muslim 7282
Another narration of the same hadith spells the twelve out: four before Dhuhr and two after it, two after Maghrib, two after Isha, and two before Fajr.3
The twelve emphasised sunnah rak'ahs placed around the five obligatory prayers: two before Fajr; four before Dhuhr and two after it; none attached to Asr; two after Maghrib; and two after Isha — with the obligatory rak'ahs of each prayer (2, 4, 4, 3 and 4) between them.
- Fajr2 sunnah before · 2 fard
- Dhuhr4 sunnah before · 4 fard · 2 sunnah after
- Asr4 fard
- Maghrib3 fard · 2 sunnah after
- Isha4 fard · 2 sunnah after
Asr has no emphasised sunnah attached to it, and nothing is prayed after Fajr or after Asr — those are two of the times when voluntary prayer is avoided (see Beyond the Five).
Ibn 'Umar, who prayed alongside the Prophet ﷺ for years, remembered ten rak'ahs rather than twelve — with two before Dhuhr instead of four.4 Both reports are authentic, and 'Aisha confirms the four: he "never missed four rak'at before the Zuhr prayer and two rak'at before the Fajr prayer."5 The schools weigh them differently:
The Maliki school singles out the two rak'ahs before Fajr and treats the rest as recommended voluntary prayer, without fixing their number as strictly.232425
The two before Fajr
Of all the sunnah prayers, none was kept more faithfully. 'Aisha said the Prophet ﷺ was "never more regular and particular in offering any Nawafil than the two rak'at (Sunna) of the Fajr prayer,"8 and he said of them:
"The two rak'ahs at dawn are better than this world and what it contains."
— Sahih Muslim 7257
They are short, prayed after the adhan for Fajr and before the obligatory two.
At home is best
Ibn 'Umar noted that the sunnah prayers after Maghrib and Isha were prayed in the Prophet's ﷺ house.11 He encouraged the same for everyone, telling the people of Madinah:
"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 73112
Praying them in the mosque is still perfectly fine — but a home where prayer is seen is part of the point.
Lighter extras
Beyond the twelve, a few more were encouraged without the same emphasis:
- Four before Asr. "May Allah show mercy to a man who prays four rak'ahs before the afternoon prayer."9
- Two before Maghrib. The Prophet ﷺ said "Pray before the Maghrib," and the third time added "Whoever wants to offer it can do so" — so that people would not take it as a fixed obligation.10
Duha, the forenoon prayer
Duha is prayed in the morning, after the sun has risen clear of the horizon and before it reaches its height at midday.232425 It is the prayer of the long morning gap between Fajr and Dhuhr — and it is tied to gratitude for the body itself:
"In the morning charity is due from every bone in the body of every one of you. … and two rak'ahs which one prays in the forenoon will suffice."
— Sahih Muslim 72013
Abu Hurayrah counted it among the three things his "friend" ﷺ advised him never to leave: fasting three days a month, the Duha prayer, and praying Witr before sleeping.14
How many rak'ahs? Two is the minimum.13 'Aisha said the Prophet ﷺ prayed it as "four rak'ahs, but sometimes more as he pleased,"15 and on the day of the conquest of Mecca he prayed eight.16
When is best? Later in the morning, once the day has warmed up:
"The prayer of those who are penitent is observed when your weaned camels feel the heat of the sun."
— Sahih Muslim 74817
"Those who are penitent" translates al-awwabin — so the hadith itself names late Duha as "the prayer of the awwabin." Avoid the moment of sunrise itself, which is one of the times voluntary prayer is set aside.18
Two short prayers for special moments
Greeting the mosque (Tahiyyat al-masjid). When you walk into a mosque, pray two rak'ahs before you sit down:
"If anyone of you enters a mosque, he should pray two rak'at before sitting."
— Sahih al-Bukhari 44420
If you arrive as the congregation is starting an obligatory prayer, join it instead: "When the prayer commences, there is no prayer but the obligatory one."19 (What to do if the Friday sermon has begun is covered in Jumu'ah.)
Two rak'ahs after wudu. The Prophet ﷺ told Bilal he had heard his footsteps ahead of him in Paradise, and asked him about the best deed he had done since accepting Islam. Bilal said that whenever he made wudu, by day or by night, he prayed after it as much as was written for him.21 'Uthman taught the same after showing how the Prophet ﷺ made wudu: whoever washes like that and then prays two rak'ahs without letting the mind wander, his past sins are forgiven.22
In short
The sunnah prayers are the Prophet's ﷺ own daily rhythm around the obligatory five: two before Fajr, four before and two after Dhuhr, two after Maghrib, two after Isha — then Duha in the morning, two rak'ahs on entering a mosque, and two after wudu. None of them is required. All of them are, in his words, worth building a house in Paradise for. To see where they sit next to the night prayer, Witr, and the rest, start at Beyond the Five.