0
Worship guides

Solat Witir: Rakaat, Niat and How to End the Night Prayer

A practical guide for Muslims in Singapore on the prayer that closes the night: its ruling, how many rakaat, the niat, the best time and how MUIS guides qunut in Ramadan.

By SedekahSG Team
Updated 9 min read
Malay man in white baju Melayu and songkok sits on a maroon mat performing solat witir in a lamp-lit HDB bedroom before dawn
Short answer

Solat witir is the odd-numbered prayer you make the last prayer of your night. The majority of scholars hold it is sunnah mu’akkadah, strongly recommended but neither fardhu nor wajib, and the minimum is one rakaat.

On this page 7 sections

Key takeaways

  • Timing: Pray it before sleeping if you may not wake; if you will wake, the end of the night is preferable.
  • Qunut: MUIS cites the mu'tamad Shafi'i view that qunut is read in witir in the second half of Ramadan.
  • Once a night: After an early witir you may still pray tahajjud, but do not repeat witir.
  • Missed witir: A hadith graded sahih says to pray it when you remember.

Solat witir is the odd-numbered prayer that closes your night: you pray your other sunnah prayers first and make witir the last one. This guide covers its ruling, witir berapa rakaat, the niat, the best time to pray it and how qunut works in Ramadan, drawing on MUIS, Sunnah.com and published fatwa. For other acts of worship, see our other worship guides. If you are seeking Allah's guidance on a decision, see our guide to solat istikharah and its doa. If you need to pray the fardhu prayers on a journey, see our guide to solat jamak and qasar when travelling.

1 rakaatthe minimum witir
5 prayersare fardhu, and witir is not one of them
2nd halfof Ramadan, when Shafi'i qunut in witir is read

Is solat witir wajib or sunnah?

Solat witir is sunnah mu’akkadah, a strongly recommended sunnah, in the view of the majority of scholars, and is neither fardhu nor wajib.

Malaysia's Federal Territory Mufti Office sets out this position and concludes that the majority view is the stronger one: witir is sunnah mu’akkadah, strongly urged by the Syarak1. The reasoning rests on hadith stating that only five prayers are fardhu or wajib, and witir is not among them1.

The Hanafi school takes a different view and rules witir wajib, so leaving it is sinful in that school1. Part of the difference is about terms. Hanafi scholars separate fardhu, which is established by definitive (qath'ie) evidence, from wajib, which is established by probable (zhanni) evidence. The Shafi'i school and the majority treat wajib and fardhu as the same thing, except in the chapter on hajj1.

How the majority and the Hanafi school classify witir
Point Majority of scholars (jumhur) Hanafi school
Ruling on witir Sunnah mu’akkadah Wajib; leaving it is sinful
Fardhu and wajib The same, except in hajj (also the Shafi'i position) Two levels: fardhu from definitive evidence, wajib from probable evidence
Where witir sits Outside the five fardhu prayers Wajib, a level below fardhu

So a Hanafi text that calls witir wajib still places it below the five daily prayers. If you are unsure which school's ruling applies to you, refer to your own ustaz or the Office of the Mufti.

What hadith support solat witir?

The core evidence is the Prophet's instruction to make witir the last prayer of the night, recorded in Sahih al-Bukhari 998 and Sahih Muslim 751.

"Jadikan akhir solat (sunat) kalian pada waktu malam dengan melakukan solat sunat witir."

Sahih al-Bukhari 998 and Sahih Muslim 751, as cited by the Federal Territory Mufti Office

In English, the instruction is to make witir the end of your (sunnah) prayers at night1. Other narrations show why the odd number matters and how the Prophet kept the prayer:

  • Allah loves the odd. A hadith on Sunnah.com records that Allah is witr (One) and loves the witr, meaning odd numbers5.
  • Every night, until dawn. A hadith on Sunnah.com reports that the Prophet observed witr every night and completed it at the time of dawn5.
  • Night prayer became voluntary. A narration that Quran.com links to Surah Al-Muzzammil, verse 1, says night prayer was first made obligatory; the closing verses of the surah were held back for twelve months, and once they were revealed, night prayer became supererogatory6.
A well-known narration is graded weak

Jami` at-Tirmidhi 453, which says witr is not like the obligatory prayers but is a Sunnah and calls on the people of the Qur'an to pray it, is graded Da'if by Darussalam on Sunnah.com4. When you quote evidence for witir, rely on the Sahih al-Bukhari and Sahih Muslim narrations instead.

Witir closes the night on an odd number, and many readers like to close their day with a deed that keeps running after them. A Waqaf Food share keeps meals going, Food Aid for Madrasah supports madrasah students, and a Waqaf Quran places copies of the Quran for others to recite.

Witir berapa rakaat, and is there a maximum?

Witir can be as short as one rakaat; a fatwa quoted on konsultasisyariah.com sets no maximum, provided you close on an odd rakaat.

Answering on konsultasisyariah.com, Ustadz Ahmad Anshori, an alumnus of the Islamic University of Madinah, states that the minimum witir is one rakaat17. For the upper limit he quotes Fatawa al-Lajnah ad-Da-imah (7/173): there is no set maximum, and praying 1, 3, 5, 7, 9, 11, 13 or more rakaat is allowed17.

The same page translates a hadith it attributes to Bukhari and Muslim: night prayer is prayed two rakaat at a time, and someone who fears dawn is near prays one rakaat of witir to close the prayers before it17. Single-rakaat witir is therefore the fallback when time runs short.

A narration that Quran.com links to Surah Al-Muzzammil describes a longer night prayer, though it does not call that prayer witir. The Prophet would use the tooth stick, take wudhu and pray nine rakaat, sitting only in the eighth to remember, praise and supplicate to Allah, then rising without the salam to pray the ninth6.

The Shafi'i upper limit is not settled here

The no-maximum view comes from the Lajnah Da-imah fatwa collection, not from a Shafi'i text, and this guide could not confirm the Shafi'i maximum from an official source. If you want to pray a long witir, follow your own ustaz or the Office of the Mufti on the count.

What is the niat for solat witir?

The niat for solat witir is the heart's intention to pray witir for Allah; in the Shafi'i school you bring it to mind at takbiratul ihram.

akuislam.com defines niat as the heart's wish to perform the prayer for Allah, and notes that in the Shafi'i school it is made at takbiratul ihram16. The wording names the number of rakaat you are about to pray, so the two-rakaat and one-rakaat versions differ15.

Witir niat wording in rumi, Malay and English
Rakaat Rumi Malay English meaning
Two Uṣallī sunnatal-witri rak‘ataini lillāhi ta‘ālā Sahaja aku solat sunat Witir dua rakaat kerana Allah Taala. I intend to pray the sunnah witir prayer, two rakaat, for Allah Ta'ala.
One Uṣallī sunnatal-witri rak‘atan lillāhi ta‘ālā Sahaja aku solat sunat Witir satu rakaat kerana Allah Taala. I intend to pray the sunnah witir prayer, one rakaat, for Allah Ta'ala.

akuislam.com also says the niat may be made in Malay alone, giving the one-rakaat wording as its example16. The Arabic-script line is not reproduced here because it could not be matched to a source used for this guide; the rumi text in the table is its transliteration15.

Saying the words is optional

The Arabic wording only helps you form the intention; pronouncing it is not a condition for the prayer to be valid, and you do not need to compose the Arabic in your heart. What counts is knowing you are praying witir and intending it for Allah16.

SedekahSGWaqaf FoodMeals for orphans, hafiz students and families in need in six countries.Support now

When should you pray witir: before sleeping or at the end of the night?

Pray witir before you sleep if you may not wake later; if you are keen to wake, praying it at the end of the night is preferable.

In Sahih Muslim 755a, the Prophet said: "If anyone is afraid that he may not get up in the latter part of the night, he should observe Witr in the first part of it; and if anyone is eager to get up in the last part of it, he should observe Witr at the end of the night, for prayer at the end of the night is witnessed (by the angels) and that is preferable."3 Sahih Muslim files it under a chapter for one who fears he will not get up at the end of the night, who should then pray witir at the beginning of it3.

The latest point is dawn. Abu Sa'id reported that when the Companions put a question about witir to the Prophet, he told them to observe it before it is morning5. The exact moment the witir time begins could not be confirmed from the sources used here, so follow your own ustaz on the start time.

In Ramadan, many families already wake for suhoor, which makes the end-of-night option realistic. If you plan those nights around suhoor, our iftar and suhoor programmes let you share the same meals with others.

Ramadan nights in practice

If you pray witir straight after tarawih, you have taken the first-part-of-the-night option in the hadith. If you trust yourself to wake for suhoor, the same hadith points to keeping witir until then; whether you may still pray tahajjud after an early witir is covered in the FAQ.

When is qunut read in witir during Ramadan?

Qunut in witir is read particularly in the second half of Ramadan, according to the established (mu'tamad) Shafi'i opinion cited by MUIS.

The Office of the Mufti of MUIS set this out in an advisory dated 11 March 20242. It separates two kinds of qunut: the Ramadan qunut in witir, which belongs to the second half of the month under the mu'tamad Shafi'i view, and Qunut Nazilah, which is read for as long as its underlying reason persists2. MUIS supports the Shafi'i ruling with al-Shirbini's Mughni al-Muhtaj Sharh al-Minhaj (1:454)2.

MUIS listed two options to consider2:

  • reading qunut in witir during the first half of Ramadan with the intention of a Nazilah supplication;
  • continuing qunut in witir in the second half of Ramadan, adding the supplications set out in Annex A of the advisory.

MUIS adds that Qunut Nazilah stays recommended in either half of Ramadan as long as its reason continues, and this includes reading it in witir during the first half2. So if you hear qunut in witir at your mosque before mid-Ramadan, it may be read as Qunut Nazilah rather than as the second-half Ramadan qunut.

Questions people also ask

Which surahs are recommended in the three rakaat of witir?

Jami` at-Tirmidhi 462, graded Sahih by Darussalam, reports that the Prophet recited Surah al-A'la, Surah al-Kafirun and Surah al-Ikhlas in witir, one in each rakaat. Ubayy ibn Ka'b narrates the same three surahs (87, 109 and 112) in Sunan Abi Dawud 1423.

Can I pray witir again if I prayed it after tarawih and woke up for tahajjud?

No. You may pray tahajjud or other nafl prayers, but the witir you prayed earlier is enough and should not be repeated. Talq ibn 'Ali reported the hadith ‘There should not be two Witrs in one night’, which Al-Albani classed as authentic, and an-Nawawi wrote in Al-Majmu` (3/512) that nafl after witir is permissible and not disliked.

Can a missed witir be made up (qada) the next day?

Sunan Abi Dawud 1431, narrated by Abu Sa'id al-Khudri and graded Sahih by Al-Albani, records that whoever oversleeps and misses witir, or forgets it, should pray it when he remembers. The hadith does not name a cut-off day, so follow your own ustaz on how late a qada may be.

What doa or zikir is recommended after solat witir?

On finishing witir the Prophet said Subhanal-Malikil-Quddus (Glory be to the Sovereign, the Most Holy) three times, drawing out the words the last time (Sunan an-Nasa'i 1699; see also Sunan Abi Dawud 1430). Sunan Abi Dawud 1427 adds a supplication he said at the end of witir, seeking refuge in Allah's pleasure from His anger, in His pardon from His punishment and in His mercy from His wrath; it does not say whether this came before or after the salam.

Feed a family today

Waqaf Food provides meals for orphans, hafiz students and families in need in Indonesia, Bangladesh, Cambodia, Thailand, the Philippines and for Rohingya families.

  • Photo & video update from S$100 per name
  • Certificate from S$1,000
Support now
Written by the SedekahSG Team

SedekahSG is based in Singapore. We check every rule, rate and date against its original source before we publish, and update this guide when the rules change.

Sources (17)
  1. Federal Territory Mufti Office, Malaysia, Irsyad al-Fatwa Siri ke-379: Mengapa Mazhab Hanafi Mewajibkan Solat Witir.Used in: 1. Ruling · 2. Evidence
  2. MUIS, Performing Qunut in Ramadan.Used in: 6. Qunut in RamadanAs of March 2024
  3. Sunnah.com, Sahih Muslim 755a.Used in: 5. Best time
  4. Sunnah.com, Jami` at-Tirmidhi 453.Used in: 2. Evidence
  5. Sunnah.com, Hadith search: Witr.Used in: 2. Evidence · 5. Best time
  6. Quran.com, Hadith on Surah Al-Muzzammil, verse 1.Used in: 2. Evidence · 3. Number of rakaat
  7. Sunnah.com, Jami` at-Tirmidhi 462.Background reading for this guide
  8. Sunnah.com, Sunan Abi Dawud 1423.Background reading for this guide
  9. Sunnah.com, Sunan Abi Dawud 1431.Background reading for this guide
  10. Sunnah.com, Sunan an-Nasa'i 1699.Background reading for this guide
  11. Sunnah.com, Sunan Abi Dawud 1430.Background reading for this guide
  12. Sunnah.com, Sunan Abi Dawud 1427.Background reading for this guide
  13. islamqa.info, Praying nafl after Witr (answer 20851).Background reading for this guideAs of 24/January/2003
  14. fiqh.islamonline.net, Tahajjud and Nafl after Witr Prayer.Background reading for this guideAs of November 2026
  15. akuislam.com, Niat Solat Fardu dan Sunat.Used in: 4. Niat
  16. akuislam.com, Solat Witir.Used in: 4. Niat
  17. konsultasisyariah.com, Jumlah Maksimal Rakaat Witir.Used in: 3. Number of rakaatAs of May 2019
Was this helpful?
Share
Support now
0 itemsS$0