Published by Yala Media Group | April 2026
The question comes up constantly among Muslims who are serious about their night worship: what if I can’t sleep before tahajjud? What if I’m working night shifts? What if it’s Ramadan and I’m already awake? What if I’ve tried to sleep and it won’t come?
The short answer, based on the scholarly consensus: you can pray tahajjud without sleeping first, and it counts.
The longer answer — which covers the fiqh, the optimal timing, the method, and what makes night prayer so spiritually powerful in the first place — is what this guide covers.
What tahajjud actually is
The word tahajjud comes from the Arabic root h-j-d, which carries the dual meaning of sleeping at night and being wakeful at night. Specifically, tahajjud refers to voluntary night prayer performed after Isha — the night prayer that is separate from and in addition to the five obligatory prayers.
The Quran praises those who pray tahajjud directly: “And they who pass the night prostrating themselves before their Lord and standing.” — Surah Al-Furqan 25:64. And in another place: “Their sides part from their beds to call upon their Lord in fear and hope.” — Surah As-Sajdah 32:16.
The Prophet ﷺ established its virtue explicitly: “The most excellent prayer after what is prescribed is the night prayer.” — Sahih Muslim.
And: “Perform Tahajjud prayer; for indeed it was the practice of those before you, and it is a means of gaining nearness to your Lord, and it is atonement for bad deeds and it prevents sins.” — Tirmidhi.
These are not minor endorsements. Night prayer is described as the most excellent voluntary prayer, a means of nearness to Allah, and an atonement for sins. For the Muslim who wants to build a serious prayer practice beyond the five obligatory prayers, tahajjud is the most powerful voluntary act available.
Does sleeping first actually matter? The fiqh
This is the source of the widespread confusion. Many Muslims believe you must sleep before tahajjud — that if you haven’t slept, you can’t perform it. This belief is not accurate as a matter of Islamic law.
The scholarly consensus, as articulated by Sheikh Abdul-Majeed Subh, a prominent Azharite scholar: “There is nothing wrong in performing Tahajjud and Witr Prayer before sleeping or without sleeping and they are valid even if the Shafi’i scholars are of the opinion that one should sleep before offering Tahajjud. But this is some sort of ijtihad (personal reasoning) that does not prevent the validity of the Tahajjud and Witr Prayer performed by one before going to sleep.”
Sleeping is not a condition for the validity of Tahajjud. It is a preferred practice — particularly in the Shafi’i madhab — but it is not legally required. Tahajjud Salaah can be performed whether one sleeps or not.
What IS required:
- It must be performed after Isha prayer
- It must be performed before the Fajr azaan
- You must be in a state of wudu
- The intention (niyyah) must be for voluntary night prayer
The reason sleeping is preferred where possible is both linguistic — tahajjud etymologically implies rising from sleep — and practical. The effort of overcoming sleep to pray has its own spiritual weight. Waking from deep sleep to stand before Allah in the cold darkness of the night is a more demanding act of worship than simply staying awake and praying before bed.
The Prophet ﷺ said: “Whoever wakes his wife at night so that they both pray two rak’ah together, they are counted among those who remember Allah frequently.” The “waking” implies sleeping first.
But for the Muslim who genuinely cannot sleep — who is working night shifts, studying, caring for a newborn, or simply insomniac — the obligation of sleep does not create a barrier to night prayer. Pray. It is valid.
The optimal timing: why the last third of the night matters
If you are going to pray tahajjud without sleeping — staying up through the night — the question of timing becomes particularly important.
The most spiritually significant time for tahajjud is the last third of the night. This is established by one of the most important hadith in the prophetic tradition:
“Our Lord descends to the lowest heaven during the last third of the night, asking: ‘Who will call on Me so that I may respond to him? Who is asking something of Me so I may give it to him? Who is asking for My forgiveness so I may forgive him?'” — Narrated by the group (Bukhari, Muslim, and others).
This hadith — describing divine descent to the lowest heaven and the direct divine invitation to be heard, answered, and forgiven — is one of the most powerful descriptions of an accessible spiritual window in all of Islamic teaching. The last third of the night is when Allah (SWT) is specifically and actively seeking those who will call on Him. This is not poetry. It is theological reality.
Calculating the last third: divide the total night hours from Maghrib to Fajr into three equal parts. The last third begins at the two-thirds mark. If Maghrib is at 7pm and Fajr is at 5am, the night is ten hours, and the last third begins at approximately 1:40am.
For the Muslim who is staying awake without sleeping, this means: if you can, delay your tahajjud until at least the beginning of the last third, then pray through it until Fajr. This aligns your prayer with the most spiritually charged window available.
“The closest that a slave comes to his Lord is during the middle of the latter portion of the night. If you can be among those who remember Allah, the Exalted One, at that time then do so.” — Narrated by `Amr ibn Abasah.
How many rak’at?
Tahajjud is prayed in pairs of two rak’at, with no fixed maximum. The minimum is two rak’at. Common amounts are four, six, eight, ten, or twelve rak’at. The Prophet ﷺ most commonly prayed eight rak’at of tahajjud followed by three rak’at of witr.
For the beginner, two rak’at is entirely sufficient and entirely valid. The Prophet ﷺ said: “The night prayer is two by two.” — Sahih al-Bukhari. Pray two, give salaam, pray two more if you wish, and so on.
The goal is not quantity. It is quality — the presence, the length of recitation and supplication, the focus of the heart. Two rak’at prayed with complete presence and extended sujood is worth more than twelve rak’at rushed through while the mind wanders.
What to recite: Any surah after Al-Fatiha. The Prophet ﷺ recited long portions of the Quran in his night prayer — sometimes completing a juz in a single night. If you have memorized longer surahs, tahajjud is the ideal time to recite them. Surah Al-Baqarah, Surah Al-Imran, and Surah An-Nisa were among the surahs he recited in night prayer. For those with less memorization, any surah you know recited slowly and with understanding is better than a longer surah recited hastily.
Lengthen sujood. The sujood — prostration — in tahajjud is where the closest encounter with Allah happens. The Prophet ﷺ said: “The closest a servant is to his Lord is when he is prostrating.” Extend your sujood. Make dua in it. Pour your specific needs, your fears, your gratitude, your confession into the prostration. This is the purpose of tahajjud — not checking off rak’at but drawing close.
Witr: the essential companion to tahajjud
Witr — the odd-numbered prayer that closes the night’s worship — should come after tahajjud. The Prophet ﷺ made witr the last of his night prayers, and he said: “Make witr the last of your night prayers.” — Sahih al-Bukhari and Muslim.
Witr is performed as one, three, five, or seven rak’at. The three rak’at format is most common. In the final rak’ah, the Qunut dua is recited after the rukoo’ (bowing) or before it depending on madhab — a supplication asking Allah for guidance, wellbeing, protection, and mercy.
For the Muslim praying without sleeping: pray your tahajjud rak’at in pairs, then close with witr before Fajr. This is the complete night prayer structure.
One practical note: if you prayed witr earlier in the night (before intending to stay up), and then want to add more voluntary prayer before Fajr, you can pray additional pairs without repeating witr. “There should not be two Witr prayers in one night.” — IslamQA.
A practical structure for the sleepless night
If you are staying up through the night — for Laylatul Qadr, for a big exam, for a night shift, for any reason — here is a practical structure:
After Isha: Pray Isha if you haven’t. Perform your witr now if you are worried you won’t be awake for the last third. (Jabir RA narrates: “Whoever fears that he will not get up at the end of the night, let him pray Witr at the beginning.”)
Throughout the night: Engage in dhikr, Quran recitation, istighfar, dua, or study. Rest when needed without deep sleep.
Last third of the night (approximately 2-4am depending on season): Begin tahajjud. Two rak’at to start. Then more pairs as your energy and focus allow. Extend the sujood. Make personal dua.
If you prayed witr earlier: You can still pray additional voluntary rak’at in pairs during the last third. Simply don’t add another witr.
Before Fajr: Make sure you’ve completed all your voluntary prayer before the Fajr azaan. The window closes at Fajr.
What to make dua for in the last third
The divine invitation — “Who will call on Me so that I may respond?” — is an open invitation, not a limited one. Bring everything. Bring your specific fears. Bring your marriage problems. Bring your financial worry. Bring your children’s futures. Bring your desire for guidance, for forgiveness, for closeness to Allah. Bring your list.
The scholars have identified specific duas from the Sunnah that are particularly recommended in the last third:
“Subhanakal-lahumma wa bihamdika, ashhadu al-la ilaha illa anta, astaghfiruka wa atubu ilayk.” — Glory be to You, O Allah, and praise be to You. I bear witness that there is no god but You. I seek Your forgiveness and repent to You.
And the sayyid al-istighfar — the master supplication for forgiveness: “Allahumma anta Rabbi la ilaha illa anta, khalaqtani wa ana abduka, wa ana ‘ala ‘ahdika wa wa’dika mastata’tu, a’udhu bika min sharri ma sana’tu, abu’u laka bini’matika ‘alayya, wa abu’u laka bidhanbi faghfir li, fa’innahu la yaghfiru al-dhunuba illa anta.” — O Allah, You are my Lord. There is no deity except You. You created me and I am Your slave, and I am faithful to my covenant and my promise as much as I can. I seek refuge with You from the evil of what I have done. I acknowledge Your favour upon me and I acknowledge my sin, so forgive me, for there is no one who forgives sins except You.
The barakah of the sleepless night
There is a dimension of tahajjud that the Muslim who never stays up for it has not fully accessed. It is the spiritual quality of the dead hours of the night — 3am when the world is silent, when no one is watching, when the darkness outside is complete — and standing before Allah in that moment. It is an encounter with the reality of muraqabah that daylight prayer can’t quite replicate.
“And in a part of the night, prostrate yourself to Him and glorify Him a long part of the night.” — Surah Al-Insan 76:26.
Whether you slept or not, whether you’re fighting insomnia or a work deadline or the intensity of Laylatul Qadr — if you are awake in the last third of the night and you stand to pray, you are in the company of those the Quran praises. The most noble of the ummah are the huffadh and those who perform tahajjud.
Stand up. Pray. The invitation is open.
Yala Media Group builds technology for the Muslim community where giving is structural, transparent, and effortless. Learn more at yalamediagroup.com.