Skip to content
  1. Home
  2. Witr namaz

Salah

Witr Namaz: How to Pray Witr, How Many Rakats It Has in Each School, and the Dua for Witr

The odd-numbered prayer that closes the night: its rakats, how each school prays it and where the qunoot goes

Witr namaz is the odd-numbered prayer prayed after Isha and before dawn, the last prayer of the night. In the Hanafi school, common in South Asia, it is 3 rakats with one salam and is wajib, with the qunoot dua said in the third rakat before ruku. In the Shafi’i, Maliki and Hanbali schools it is a stressed sunnah of 1, 3 or more rakats, often prayed as 2 and then 1. Here is how to pray witr in each way, side by side, with the dua for witr and what to say after it.

Card titled Witr namaz, showing 3 rakats in the Hanafi school and 1, 3 or more in the others, with qunoot in the last rakat

Witr namaz rakats in each school

All of these follow sound reports of how the Prophet (peace be upon him) prayed at night. He said: the night prayer is two by two, and when you fear dawn, pray one rakat to make it odd (Sahih al-Bukhari and Sahih Muslim). Follow your own scholar or mosque.

Witr time

From after the Isha fard until true dawn. The Prophet said: make witr the last of your prayer at night (Sahih al-Bukhari and Sahih Muslim). If you are sure to wake for tahajjud, pray witr after it; if not, pray it before sleeping.

SchoolRulingRakatsWhere the qunoot goes
HanafiWajib3, one salam, sitting after the 2nd3rd rakat, before ruku, every night
Shafi’iStressed sunnah1 to 11, odd; often 2 + 1Last rakat, after ruku, in the second half of Ramadan
MalikiStressed sunnah1, after at least 2 (the shaf‘)Not in witr; the qunoot is said in Fajr
HanbaliStressed sunnah1 to 11, odd; often 2 + 1Last rakat, after ruku, all year

3 rakat witr namaz ka tarika (Hanafi)

  • Intention: three rakats witr wajib, facing the qibla.
  • First and second rakats: Al-Fatiha and a surah in each, as in any prayer. Sit after the second for at-tahiyyat only, then stand.
  • Third rakat: Al-Fatiha and a surah. Then, before going into ruku, raise your hands to your ears saying Allahu akbar, fold them again, and recite the qunoot dua quietly.
  • Finish: ruku, rising, two sajdahs, the final tashahhud, salawat, a dua and salam.

In the Hanafi school, Al-Fatiha and a surah are recited in all three rakats of witr. If you do not yet know a qunoot dua, say “Rabbana atina fid-dunya hasanah, wa fil-akhirati hasanah, wa qina ‘adhaban-nar” or “Allahummaghfir li” three times until you learn one.

How to pray witr in the Shafi’i and Hanbali way

  • One rakat: the least witr. Pray a single rakat with Al-Fatiha and a surah, ruku, sajdahs, tashahhud and salam.
  • Three as 2 + 1: pray two rakats and end with salam, then stand and pray one rakat on its own. This is the most common way.
  • Three together: three rakats with one tashahhud at the end and one salam, so it does not look like Maghrib.
  • Qunoot: after rising from ruku in the last rakat, raise your hands and say the qunoot (Hanbali every night; Shafi’i in the second half of Ramadan). Then go into sajdah.

It is sunnah to recite Al-A‘la in the first of three rakats, Al-Kafirun in the second and Al-Ikhlas in the third, as reported in the Sunan collections.

Dua for witr: the qunoot and what to say after

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

(Allahummah-dinee feeman hadayt, waAAafinee feeman AAafayt, watawallanee feeman tawallayt, wabarik lee feema aAAtayt, waqinee sharra ma qadayt, fa-innaka taqdee wala yuqda AAalayk, innahu la yathillu man walayt, [wala yaAAizzu man AAadayt], tabarakta rabbana wataAAalayt.)

(O Allah, guide me along with those whom You have guided, pardon me along with those whom You have pardoned, be an ally to me along with those whom You are an ally to and bless for me that which You have bestowed. Protect me from the evil You have decreed for verily You decree and none can decree over You.For surety, he whom you show allegiance to is never abased and he whom You take as an enemy is never honoured and mighty. O our Lord, Blessed and Exalted are You.)(Evil you have decreed: Allah does not create pure evil which does not have any good or contain any benefit, wisdom or mercy at all, nor does He punish anyone without having commited a sin. Something can be good in terms of its creation when viewed in a particular perspective and at the same time be evil when viewed in another way.Allah created the devil and by him, He tests His servants, so there are those who hate the devil, fight him and his way and they stand at enmity towards him and his followers and there are others who are at allegiance with the devil and follow his steps. So evil exists in His creatures by His will and wisdom, not in His actions or act of creating.)

Hisn al-Muslim 116

((اللَّهُمَّ إِيَّاكَ نعْبُدُ، وَلَكَ نُصَلِّي وَنَسْجُدُ، وَإِلَيْكَ نَسْعَى وَنَحْفِدُ، نَرْجُو رَحْمَتَكَ، وَنَخْشَى عَذَابَكَ، إِنَّ عَذَابَكَ بِالكَافِرِينَ مُلْحَقٌ. اللَّهُمَّ إِنَّا نَسْتَعينُكَ، وَنَسْتَغْفِرُكَ، وَنُثْنِي عَلَيْكَ الْخَيْرَ، وَلاَ نَكْفُرُكَ، وَنُؤْمِنُ بِكَ، وَنَخْضَعُ لَكَ، وَنَخْلَعُ مَنْ يَكْفرُكَ)).

(Allahumma iyyaka naAAbud, walaka nusallee wanasjud, wa-ilayka nasAAa wanahfid, narjoo rahmatak, wanakhsha AAathabak, inna AAathabaka bilkafireena mulhaq. Allahumma inna nastaAAeenuk, wanastaghfiruk, wanuthnee AAalaykal- khayr, wala nakfuruk, wanu/minu bik, wanakhdaAAu lak wanakhlaAAu man yakfuruk.)

(O Allah, it is You we worship, and unto You we pray and prostrate, and towards You we hasten and You we serve. We hope for Your mercy and fear Your punishment, verily Your punishment will fall upon the disbelievers.O Allah, we seek Your aid and ask Your pardon, we praise You with all good and do not disbelieve in You.We believe in You and submit unto You, and we disown and reject those who disbelieve in You.)

Hisn al-Muslim 118

((سُبْحَانَ المَلِكِ القُدُّوسِ)) ثلاثَ مرَّاتٍ والثَّالِثَةُ يَجْهَرُ بها ويَمُدُّ بها صَوتَهُ يقولُ: [رَبِّ الْمَلاَئِكَةِ وَالرُّوحِ])).

(Subhanal-malikil-quddoos.(three times).on the third time he would raise his voice, elongate it and add: (Rabbil-mala-ikati warrooh.))

(How perfect The King, The Holy One is.(three times) on the third time he would raise his voice, elongate it and add: (Lord of the angles and the Rooh (i.e. Jibra-eel).))

Hisn al-Muslim 119

The first dua above is the qunoot the Prophet taught his grandson al-Hasan for witr, most used in the Shafi’i and Hanbali schools. The second holds the two parts of the qunoot most Hanafi mosques recite, “Allahumma inna nasta‘inuka…” and “Allahumma iyyaka na‘budu…”; Hanafi mosques say them in the opposite order to the one shown. Either qunoot is correct.

After witr

After the salam of witr, the Prophet would say “Subhanal-Malikil-Quddus” three times, raising his voice on the third (the last text above). It is a short, beautiful sunnah to keep every night.

Written for DonateOpenly from the sources it cites, and awaiting review by ulama. Dates are worked out from the Islamic calendar and depend on the moon sighting.

Choose a charity, then give on its own website

Every registered UK Muslim charity has a page on DonateOpenly: what it does, where its work reaches people and where donors review it.

Find a charity

Witr namaz: questions

How many rakats is witr?

3 in the Hanafi school. In the other schools the least is 1 and the most 11, always odd; 3 is common.

Is witr wajib or sunnah?

Wajib in the Hanafi school, binding just below fard. The Shafi’i, Maliki and Hanbali schools hold it is a stressed sunnah.

What is the dua for witr?

The qunoot. Hanafi mosques usually recite “Allahumma inna nasta‘inuka”; the other schools “Allahummahdini fiman hadayt”. Both are on this page with their sources.

Can I pray witr after tahajjud?

Yes, if you are sure you will wake. Then witr is your last prayer of the night, as the sunnah teaches.

What if I forget the qunoot in witr?

In the Hanafi school, if you remember after going into ruku, do not go back; make sajdah sahw at the end. In the Shafi’i school, the qunoot is a sunnah whose omission is also covered by sajdah sahw. See the sajda sahw page.

Can witr be prayed after Fajr has begun?

Its time ends at dawn. If you missed it, the Hanafi school says make it up as it is wajib; in the other schools, making it up is recommended.