Solat tahajjud is a sunnah night prayer, recommended rather than obligatory. Make the niat in your heart, say Takbiratul-Ihram and pray two rakaat at a time, adding pairs if you wish, then close the night with witir.
On this page 7 sections
Key takeaways
- Prophet's practice: Aisha reported that the Prophet never prayed more than 11 rakaat at night, in Ramadan or in other months.
- Near dawn: if dawn is close, one rakaat prayed then counts as witr for everything you prayed before it.
- Niat wording: Muslim.sg prints it as Usolli sunnata-tahajjud rak'ataini lillahi ta'ala.
- Opening doa: the Prophet began his tahajjud with Allahumma lakal-hamd, a doa of praise and forgiveness.
Solat tahajjud is the voluntary prayer a Muslim wakes for at night, a quiet stretch of worship before the day begins. This guide covers what the prayer is and how strongly it is recommended, what the Quran and hadith say about it, the niat Muslim.sg prints, how to pray it, how many rakaat the Prophet (ﷺ) prayed and how he closed the night with witir, and the doa he opened with. Each ruling and quote is tied to a source in the list at the end of the page.
What is solat tahajjud and what is its ruling in Islam?
Solat tahajjud is a night prayer that Muslim.sg, part of MUIS, describes as sunnah: a recommended act of worship, not one of the obligatory prayers.
Muslim.sg's guide refers to the sunnah Tahajjud prayer and frames its niat as an intention to pray "the Sunnah prayer of Tahajjud".1 Keep that strength in mind when you read about its virtues below: the texts praise the night prayer highly, and a hadith ranks it after "what is prescribed", so it does not stand alongside the five daily prayers as a duty.4
On the meaning of the word itself, Ibn Kathir's tafsir of Quran 17:79 explains that Allah commanded His Messenger to pray the night prayer after the prescribed prayers, and that the term tahajjud refers to prayer offered after sleeping.3
Ibn Kathir names Alqamah, Al-Aswad and Ibrahim An-Nakha'i among those who held this meaning, and says it is well known from the Arabic language itself.3 It defines the word; whether you must sleep before you pray is a question for your own ustaz.
The Federal Territory Mufti Office in Malaysia quotes Surah al-Muzammil, verses 1-4, in a Malay translation that renders the second verse as "Bangunlah sembahyang Tahajjud pada waktu malam": rise for the Tahajjud prayer at night, except for a little of it kept for rest.12 The passage opens by addressing "orang yang berselimut", the one wrapped in garments, before giving that command.12
Ibn Kathir also records why the night prayer is called additional. In Mujahid's view, it was made an extra prayer specifically for the Prophet (ﷺ), whose past and future sins had been forgiven, while for the rest of his ummah optional prayers may expiate the sins they commit. Ibn Kathir notes that this was also reported in Al-Musnad from Abu Umamah Al-Bahili.3 Note the wording: Mujahid says optional prayers may expiate sins, which is a scholar's explanation of the verse rather than a promise.
What does the Quran and hadith say about the virtues of tahajjud?
The Quran links rising in the last part of the night for extra prayer to a station of praise, and a hadith in Sahih Muslim ranks night prayer as the best prayer after the prescribed ones.
"And rise at ˹the last˺ part of the night, offering additional prayers, so your Lord may raise you to a station of praise."
The verse speaks to the Prophet (ﷺ) directly, and it is the verse Ibn Kathir comments on when he defines tahajjud.2 For the rest of the ummah, the clearest statement of the prayer's rank comes from the Prophet's own words.
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying that the most excellent prayer after what is prescribed is prayer during the night. In the same sentence he named fasting in al-Muharram, God's month, as the most excellent fast after Ramadan. The hadith is Sahih Muslim 1163a.4
A third hadith places night prayer beside sedekah. In Jami' at-Tirmidhi 2616, the Prophet (ﷺ) offers to guide his listener to the doors of good: fasting is a shield, sedekah puts out sins as water puts out fire, and a man's prayer in the depths of the night stands with them. He then recited Quran 32:16-17, about those whose sides forsake their beds to call upon their Lord.10
If that hadith moves you to pair your night prayer with sedekah, SedekahSG's Waqaf Food programme supports meals for families overseas. Our page on food support for madrasah students describes the student meal side of that work.
What is the niat for solat tahajjud?
The niat for solat tahajjud is an intention in the heart to pray two rakaat of the sunnah tahajjud prayer for Allah, and Muslim.sg prints a short Rumi wording for it.
| Version | Wording |
|---|---|
| Rumi (Muslim.sg spelling) | Usolli sunnata-tahajjud rak'ataini lillahi ta'ala |
| English meaning | I intend to pray the Sunnah prayer of Tahajjud two raka'at for Allah s.w.t. |
Read together, the wording names the prayer (the sunnah tahajjud), the number of rakaat (two) and the One it is for (Allah).1 Spellings of the Rumi differ from guide to guide; this page keeps Muslim.sg's spelling so you can match it against their article.
Muslim.sg states that it is part of the Islamic Religious Council of Singapore (MUIS). Its guide was first published on 21 March 2025 and updated on 3 March 2026.1 We have not printed an Arabic-script niat here, because the source we verified sets out the Rumi and English wording only.
Muslim.sg says the niyyah is placed in the heart and introduces the wording with "for example".1 Treat the Rumi line as their example of the intention you hold in your heart.
How do you pray solat tahajjud step by step?
Make the niat, say Takbiratul-Ihram and pray two rakaat; after that you can continue in further pairs and end your night prayer with witir.
- Make the niat. Intend in your heart to pray two rakaat of sunnah tahajjud for Allah, using the wording in the niat section above if it helps you.
- Say Takbiratul-Ihram. Raise your hands with the opening takbir to enter the prayer.
- Open with a night doa. The Prophet (ﷺ) began his night prayer with words of praise and supplication; both narrated versions are in the doa section below.
- Pray two rakaat. Complete the pair as you would any two-rakaat sunnah prayer.
- Add more pairs if you wish. The hadith describe the night prayer continuing two rakaat at a time.
- End with witir. Close what you have prayed with witir, as explained in the next section.
The first steps follow Muslim.sg, whose guide says the prayer starts with the niyyah, followed by the Takbiratul-Ihram and a two-raka'at prayer.1 A single pair is the prayer exactly as that guide describes it; the hadith in the next section describe further pairs continuing two at a time.
The opening doa in step three comes from the Prophet's own night prayer, recorded in Sahih al-Bukhari 1120 and Sahih Muslim 770.78 Al-Bukhari gathers the reports on how the Prophet (ﷺ) prayed at night in a book titled Prayer at Night (Tahajjud), and Aisha's account of his rakaat, which the next section uses, is filed there.6

How many rakaat is solat tahajjud, and how should it end with witir?
Hadith describe the night prayer as two rakaat followed by two rakaat, and Aisha reported that the Prophet never exceeded eleven rakaat at night.
Ibn Umar narrates the Prophet's (ﷺ) answer when he was questioned about the night prayer: "The night prayer is offered as two Rak'at followed by two Rak'at and so on." The hadith is Sahih al-Bukhari 990, in the book on the Witr Prayer.5 The instruction sets the rhythm of the prayer, pair after pair, without fixing how many pairs you pray. For how witir itself is prayed, see our guide to solat witir.
Aisha described the Prophet's own practice. Abu Salma bin Abdur Rahman narrates that she said the Messenger of Allah (ﷺ) never exceeded eleven rakaat in Ramadan or in other months: he prayed four rakaat so beautiful and long that she told her listener not to enquire about them, then four more of the same kind, then three.6
| Narration | Reference | How the rakaat are described | Rakaat |
|---|---|---|---|
| Ibn Umar | Sahih al-Bukhari 990 | Two, then two, and so on | Open-ended |
| Aisha | Sahih al-Bukhari 1147 | Four, then four, then three | 11 at most |
Four, four and three add up to the eleven Aisha mentions. The two reports look at the night from different sides: one is the Prophet's instruction to the person who questioned him, the other is his household's account of what he himself did. How the rakaat in Aisha's report were grouped into salams is not spelt out in the narration, so learn that detail from your own ustaz.
Aisha also recalls putting a question to him: did he sleep before praying witr? His reply was, "My eyes sleep but my heart remains awake".6
If you fear dawn is near, the hadith of Ibn Umar says to pray a single rakaat, and it becomes witr for all the rakaat you prayed before it.5 Close with that one rakaat rather than starting another pair.
Which doa did the Prophet read in solat tahajjud?
Two narrations record how the Prophet opened his night prayer: one with praise beginning Allahumma lakal-hamd, the other calling on Allah as Lord of Jibril, Mika'il and Israfil.
Ibn Abbas narrated that when the Prophet (ﷺ) got up at night to offer the Tahajjud prayer, he used to say Allahumma lakal-hamd (O Allah, all praise is for You). The doa goes on to seek forgiveness: "Please forgive me my previous And future sins; And whatever I concealed or revealed".7 It is a doa that covers the whole of a life, the sins behind you, the ones still ahead, the hidden and the open.
The second doa comes through Aisha, mother of the believers, who was questioned about the words with which the Prophet (ﷺ) began his prayer when he got up at night. She said he would begin: "O Allah, Lord of Gabriel, and Michael, and Israfil, the Creator of the heavens and the earth, Who knowest the unseen and the seen; Thou decidest amongst Thy servants concerning their differences." It closes by seeking guidance: "Guide me with Thy permission in the divergent views (which the people) hold about Truth".8 For the prayer Muslims offer when seeking Allah's guidance, see our guide to solat istikharah.
The night is also when Allah invites doa. Sahih al-Bukhari 1145 reports that every night, when the last third of the night remains, our Lord comes down to the nearest heaven and calls out for anyone who will invoke Him so He may respond, anyone with a request so He may grant it, and anyone seeking forgiveness so He may forgive. Al-Bukhari files it in a chapter on offering prayer and invoking Allah in the last hours of the night.9
We have not listed particular surahs to recite in tahajjud: none of the sources we verified for this guide names one. If reading the Quran at night is part of your routine, SedekahSG's Waqaf Quran is one way to help others read it too. How we pick and quote hadith sources is set out in our editorial policy, and you will find more worship explainers in our guides.
Questions people also ask
Can you pray tahajjud in congregation?
Sahih al-Bukhari 729 reports that people saw the Prophet praying at night over the low wall of his room and followed him in prayer for two or three nights. He then stopped coming out and, when people raised it in the morning, said he was afraid the night prayer might become compulsory.
What is the difference between tahajjud and qiyamullail?
The Federal Territory Mufti Office explains qiamullail as staying awake at night to worship, through acts such as sunnah prayers, Quran recitation and zikir, and treats prayer at night as one part of it. It also calls tarawih the qiamullail of Ramadan.
How does witir relate to tahajjud?
The Federal Territory Mufti Office describes solat sunat witir as prayed from after Isyak until before dawn, the same window it sets for tarawih. The hadith of Ibn Umar in Sahih al-Bukhari 990 adds that one rakaat prayed when dawn is near becomes a witr for all the rakaat prayed before it.
Can you pair tahajjud with doa and sedekah?
Al-Bukhari placed the hadith of the last third of the night in a chapter on offering prayer and invoking Allah in the last hours of the night, so doa sits naturally inside your night prayer. Jami' at-Tirmidhi 2616, covered in the virtues section, names sedekah and night prayer together among the doors of good.
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
Sources (12)
- Muslim.sg (MUIS), How to pray Tahajjud and perform Qiyamullail.Used in: 1. Meaning and ruling · 3. The niat · 4. Step by stepAs of March 2026
- Quran.com, Surah Al-Isra 17:79.Used in: 2. Virtues
- Quran.com, Tafsir Ibn Kathir on Surah Al-Isra 17:79.Used in: 1. Meaning and ruling
- Sunnah.com, Sahih Muslim 1163a.Used in: 1. Meaning and ruling · 2. Virtues
- Sunnah.com, Sahih al-Bukhari 990.Used in: 5. Rakaat and witir
- Sunnah.com, Sahih al-Bukhari 1147.Used in: 4. Step by step · 5. Rakaat and witir
- Sunnah.com, Sahih al-Bukhari 1120.Used in: 4. Step by step · 6. Doa
- Sunnah.com, Sahih Muslim 770.Used in: 4. Step by step · 6. Doa
- Sunnah.com, Sahih al-Bukhari 1145.Used in: 6. Doa
- Sunnah.com, Jami' at-Tirmidhi 2616.Used in: 2. Virtues
- Sunnah.com, Sahih al-Bukhari 729.Background reading for this guide
- Federal Territory Mufti Office, Malaysia, Irsyad al-Fatwa Siri ke-680: solat terawih and qiamullail.Used in: 1. Meaning and ruling


