Witr prayer: how to pray it, and when

8 min read

Short answer

Witr is the odd numbered prayer that closes the night. Its time runs from after you have prayed Isha until true dawn, and it can be one rakah, three, five, seven, nine or eleven. Three is the most common.

The Hanafi school holds it to be wajib, a binding obligation, while the Maliki, Shafi'i and Hanbali schools hold it to be a strongly emphasised sunnah that the Prophet ﷺ never abandoned. If you sleep through it, you pray it when you wake.

Witr is the prayer that puts a full stop on the day. The name simply means odd, and that is its defining feature: whatever else you pray at night, witr leaves your total for the night on an odd number. A hadith in the Sunan collections describes Allah as Witr, one, who loves what is odd, which is the reason usually given for the shape of it.

It is short, it is flexible, and it is the one voluntary prayer that a large part of the Muslim world treats as close to non negotiable. Many people pray it immediately after Isha and never miss it. Others hold it back until the last third of the night and make it the seal on their tahajjud.

The ruling

This is the best known difference on the subject, and it is worth getting straight before anything else, because it changes what happens when you miss it.

What the four schools say

Is witr obligatory or a strongly recommended sunnah?

Hanafi
Wajib. A binding obligation that sits below the level of a fard prayer. Missing it without excuse is sinful, and a missed witr must be made up.
Maliki
Sunnah mu'akkadah, an emphasised sunnah. Strongly urged and not to be neglected, but not obligatory.
Shafi'i
Sunnah mu'akkadah, and named by the school as the most virtuous of the voluntary prayers after the regular sunnah rakahs.
Hanbali
Sunnah mu'akkadah. The school holds it to be so emphasised that a person who persistently abandons it is considered to have his testimony weakened.

No school treats witr as optional in any casual sense. The practical difference is mainly in what is owed if you miss it, and in how urgently you are expected to make it up.

How many rakahs

Any odd number from one to eleven is reported. One, three, five, seven, nine and eleven all appear in the narrations, and the Prophet ﷺ is described as praying different amounts at different times. In practice, three is what most people pray, and one is what most people pray when they are tired or short of time.

The other half of the question is the shape. There are two ways to build an odd numbered prayer, and both are established:

  • Separated, called fasl. You pray in pairs, giving salam after each two rakahs, then pray a single rakah on its own at the end. Three rakahs becomes two, salam, then one.
  • Joined, called wasl. You pray all of it as one continuous prayer with a single salam at the end, the way Maghrib is prayed.

What the four schools say

How many rakahs, and in what form?

Hanafi
Three rakahs joined with one salam, with a sitting after the second and again at the end. Al-Fatiha and a surah are recited in all three rakahs. Witr in this school is not prayed as a single rakah.
Maliki
One rakah, preceded by two rakahs known as shaf' with a salam between them. So the visible pattern is two, salam, one. Praying more pairs beforehand is encouraged, with the single rakah always last.
Shafi'i
A minimum of one rakah and a maximum of eleven. Separating the pairs with salam is the preferred form. Three rakahs joined together are prayed with a single sitting at the end, not two, so that it does not resemble Maghrib.
Hanbali
A minimum of one rakah, with three as the preferred number, usually prayed as two rakahs with salam followed by a single rakah. Joining three with one salam and one sitting is also allowed.

If you pray behind an imam whose form differs from your own, you follow the imam. This is one of the classic cases where following the congregation takes priority over the detail of your school.

How to pray it, step by step

The mechanics of each rakah are the mechanics of any other prayer. If those are still new, work through how to pray salah first. What follows is the three rakah form as the Hanafi school prays it, because it is the most detailed version, with the variations noted.

  1. Intend witr. Make the intention in your heart for the witr prayer, then say the opening takbir.
  2. First rakah. Recite Surah Al-Fatiha and a surah after it, then bow and prostrate as normal. Surah al-A'la is commonly recited here.
  3. Second rakah. Al-Fatiha and a surah again, commonly Surah al-Kafirun. Then sit and recite the Tashahhud, and stand for the third. Schools that separate the pairs give salam at this point instead.
  4. Third rakah. Al-Fatiha and a surah, commonly Surah al-Ikhlas.
  5. Qunut. The supplication described below, placed either before bowing or after rising from it depending on your school.
  6. Finish. Complete the rakah, sit for the final Tashahhud, send blessings on the Prophet ﷺ, and give salam to the right and the left.

Those three surahs are what the narrations describe as the usual recitation, not a requirement. Any part of the Qur'an you know is fine, and in the schools that do not require a surah beyond al-Fatiha in every rakah, al-Fatiha alone is enough.

A short dhikr is reported after the salam of witr, said three times, with the voice raised on the third.

سُبْحَانَ الْمَلِكِ الْقُدُّوسِ

Transliteration. Subhanal-Malikil-Quddus.

Meaning. Glory be to the King, the Most Holy.

When its time starts and ends

The window opens once you have prayed Isha and closes at true dawn, the same moment the Fajr prayer becomes due. Everything in between is valid time for witr. For what counts as true dawn, and why it is not the same as sunrise, see what time Fajr ends.

Within that window there is a clear preference. The Prophet ﷺ instructed that the last of your night prayer should be witr, and Aisha described his witr as reaching the last part of the night. So the best time is late, after your night prayer is done. The idea of Islamic midnight is a useful marker here, because the most praised portion of the night sits after it.

That preference is conditional on actually waking up. Abu Hurayrah was advised to pray witr before sleeping, and the guidance scholars draw from this is simple: if you trust yourself to wake, delay it. If you do not, pray it after Isha and go to bed with it done. A witr prayed early is worth far more than a witr you intended to pray at three in the morning and slept through.

Qunut

Qunut is a standing supplication made in the final rakah. The wording most commonly used is the one the Prophet ﷺ taught to his grandson al-Hasan ibn Ali, recorded in the Sunan collections.

اللَّهُمَّ اهْدِنِي فِيمَنْ هَدَيْتَ، وَعَافِنِي فِيمَنْ عَافَيْتَ، وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ، وَبَارِكْ لِي فِيمَا أَعْطَيْتَ، وَقِنِي شَرَّ مَا قَضَيْتَ، فَإِنَّكَ تَقْضِي وَلَا يُقْضَى عَلَيْكَ، وَإِنَّهُ لَا يَذِلُّ مَنْ وَالَيْتَ، تَبَارَكْتَ رَبَّنَا وَتَعَالَيْتَ

Transliteration. Allahumma-hdini fiman hadayt, wa afini fiman afayt, wa tawallani fiman tawallayt, wa barik li fima atayt, wa qini sharra ma qadayt, fa innaka taqdi wa la yuqda alayk, wa innahu la yadhillu man walayt, tabarakta Rabbana wa ta'alayt.

Meaning. O Allah, guide me among those You have guided, grant me wellbeing among those You have granted wellbeing, take me into Your care among those You have taken into Your care, bless for me what You have given, and protect me from the evil of what You have decreed. For You decree and none decrees against You, and none is humiliated whom You have befriended. Blessed are You, our Lord, and Exalted.

If you are praying alone you may keep the wording singular as above. An imam leading a congregation usually puts it in the plural, saying ihdina, wa afina and so on, because he is supplicating on behalf of everyone behind him.

There is a second well known qunut, beginning Allahumma inna nasta'inuka wa nastaghfiruk, which is the wording the Hanafi school most often uses and which is transmitted from the practice of Umar ibn al-Khattab. Either is used, and some recite both one after the other.

What the four schools say

Where does qunut go, and when is it said?

Hanafi
In every witr, all year round. It is said in the third rakah before bowing, after finishing the recitation, preceded by a takbir with the hands raised.
Maliki
No qunut in witr. The school places qunut in the Fajr prayer instead, where it is said before bowing in the second rakah.
Shafi'i
In witr only during the second half of Ramadan, said after rising from bowing in the final rakah. The school also has a standing qunut in Fajr all year round.
Hanbali
In witr all year round, said after rising from bowing in the final rakah, with the hands raised.

Before bowing or after it, both placements are reported, and neither invalidates the prayer. If you forget qunut entirely, no school requires you to repeat the prayer.

If you sleep through it

This is common and it is provided for. The Prophet ﷺ said that whoever sleeps through his witr or forgets it should pray it when he remembers. There is no shame attached to it and no penalty beyond praying it.

What the four schools say

Do you make up a missed witr?

Hanafi
Yes, and it is required, because witr is wajib in this school. It is made up whenever you remember, including well after sunrise, and it remains owed until prayed.
Maliki
It is made up after dawn but before the Fajr prayer, and the school does not extend the making up indefinitely once Fajr has been prayed.
Shafi'i
Making it up is recommended, and a missed sunnah with a set time may be performed later. It is not a debt in the way a missed obligatory prayer is.
Hanbali
It is made up during the day, and the school describes praying it as an even number rather than odd when doing so, following the reported practice of praying an even number in the daytime for missed night prayer.

The practical advice across all four is the same: pray it when you realise, rather than writing off the night. If it becomes a habit, move witr to straight after Isha instead.

Building the habit

Witr is one of the easiest prayers to keep because it is short and because it has a natural cue attached to it, which is going to bed. The most reliable pattern for most people is to pray it immediately after the Isha sunnah rakahs while the wudu is still valid and the prayer mat is still out, and to treat any night prayer later on as a bonus rather than the plan.

If you want the later time, set the alarm before you commit to it, not after. And if you are still working out what belongs to each prayer, see how many rakahs is each prayer, which lays out the obligatory and sunnah rakahs side by side.

Common questions

Can I pray witr before Isha?

No. Witr follows the Isha prayer, so its time does not open until Isha has been offered. If you are combining Maghrib and Isha while travelling, witr comes after the Isha you have prayed, even if the clock is still early.

I prayed witr, then woke up and wanted to pray tahajjud. Do I pray witr again?

No. The narrations state plainly that there are no two witrs in one night. You pray as many pairs of rakahs as you wish and leave the witr you already prayed standing as the close of your night. Some scholars allow adding a single rakah at the start of the new session to make the earlier witr even again, then praying a fresh witr at the end, but the simpler and more widely followed practice is to pray in pairs and not repeat it.

Is one rakah on its own really enough?

A single rakah of witr is established in the narrations, and the Shafi'i and Hanbali schools name it as the minimum that fulfils the sunnah. The Hanafi school prays three joined rakahs and does not treat a single rakah as witr, and the Maliki school pairs the single rakah with two rakahs of shaf' before it. So the answer depends on the school you follow, and all of these forms are practised.

What if I slept through witr and it is now the middle of the morning?

Pray it. The Prophet ﷺ instructed that whoever sleeps through his witr or forgets it should pray it when he remembers. The Hanafi school requires this because witr is wajib in that school, and the other three schools consider making it up a recommended act rather than a debt. Either way the door is not closed on you.

Sources referenced

  • Sahih al-Bukhari and Sahih Muslim, the hadith of Ibn Umar: the night prayer is two by two, and if one of you fears the dawn, let him pray one rakah to make odd what he has prayed.
  • Sahih al-Bukhari and Sahih Muslim, the instruction to make the last of your night prayer witr.
  • Sahih al-Bukhari and Sahih Muslim, the report of Abu Hurayrah being advised to pray witr before sleeping.
  • Sahih al-Bukhari and Sahih Muslim, the description by Aisha of the Prophet ﷺ praying witr at every part of the night, ending at its last part.
  • Sunan Abi Dawud and Sunan at-Tirmidhi, the supplication of qunut taught to al-Hasan ibn Ali, beginning Allahumma-hdini fiman hadayt.
  • Sunan Abi Dawud and Sunan at-Tirmidhi, the instruction that whoever sleeps through his witr or forgets it should pray it when he remembers.
  • Sunan collections, the report that there are no two witrs in one night.

Where the schools of thought differ we have given each position rather than choosing one. For a ruling on your own situation, ask a qualified scholar in your community.

Put it into practice

Just Pray has this guide built in, with prayer times for your location, reminders, and a tracker so you never lose your place. Free on iOS and Android.