How to Pray Tahajjud: Complete Guide with Times and Rakats
Step-by-step guide to praying Tahajjud — correct times, number of rakats, what to recite, and how to build a consistent night prayer practice.
Nafs Team
· 6 min read
The Prayer That Changes Everything
There is a prayer in Islam that is not obligatory — and yet the people who pray it regularly speak about it with a kind of reverence that the five daily prayers sometimes don’t evoke. Not because it replaces the obligatory prayers, but because of what it adds.
Tahajjud is the voluntary night prayer, performed after sleeping and before Fajr. The Prophet Muhammad (peace be upon him) called it “the best prayer after the obligatory prayers” (Muslim), and he never abandoned it — not in Medina, not on journeys, not in illness.
This guide will give you everything you need to understand, begin, and sustain a tahajjud practice: the legal definition, the correct times, the number of rakats, what to recite, and how to actually make it happen in the real conditions of your life.
What Is Tahajjud?
The word tahajjud comes from the Arabic root h-j-d, which refers to staying up at night. In Islamic law, tahajjud refers specifically to voluntary prayer performed after waking from sleep during the night.
This distinguishes it from Qiyam al-Layl (standing the night), which is a broader term for any voluntary night prayer — including prayer performed before sleeping. The strictest definition of tahajjud requires that you sleep first, then wake and pray.
The Quran commands it:
“And from [part of] the night, pray with it as additional [worship] for you. It may be that your Lord will resurrect you to a praised station.” (Al-Isra 17:79)
This verse was directed first at the Prophet (peace be upon him) and is considered obligatory for him specifically — for the rest of the ummah, it is a confirmed and strongly recommended Sunnah (Sunnah Mu’akkadah).
When to Pray Tahajjud
The Valid Window
Tahajjud can be prayed at any point during the night after you have slept, up until the time of Fajr. The window opens after Isha prayer and closes when the Fajr adhan is called.
The Best Time
The most virtuous time is the last third of the night — this is the time referred to in the famous hadith:
“Our Lord descends every night to the lowest heaven when the last third of the night remains, and He says: ‘Who is making du’a to Me so that I may respond? Who is asking Me so that I may give? Who is seeking My forgiveness so that I may forgive?’” (Bukhari, Muslim)
How to Calculate the Last Third
The last third of the night is calculated from the time between Maghrib and Fajr — not from midnight. Here is how to find it:
- Note the time of Maghrib (sunset) and Fajr (dawn) for your location
- Calculate the total duration between them
- Divide by 3
- The final third begins two-thirds of the way through this period
Example: If Maghrib is at 7:00 PM and Fajr is at 5:00 AM, the total night is 10 hours. The last third begins at 1:40 AM and runs until Fajr.
In winter months this often means waking around 3–4 AM. In summer, it may be closer to 4–5 AM. A prayer app with precise prayer times makes this simple to track.
How Many Rakats Is Tahajjud?
The Minimum
The minimum is two rakats. The Prophet (peace be upon him) said: “The night prayer is offered as two rakats followed by two rakats, and if anyone is afraid that the subh [Fajr] is approaching, he should pray one rakat, and this odd rakat will be the witr of all the rakats he has prayed.” (Bukhari)
Two sincere rakats of tahajjud constitutes a complete act of night prayer. Do not let the idea that “more is always better” stop you from starting small.
The Common Practice
Most scholars recommend praying tahajjud in sets of two:
- 2 rakats — minimum, always valid
- 4 rakats (2+2) — common practice
- 8 rakats (2+2+2+2) — the amount most reported from the Prophet (peace be upon him)
- 12 rakats (2+2+2+2+2+2) — mentioned in some narrations
- Unlimited — there is no upper limit for tahajjud beyond physical capacity
The Prophet’s (peace be upon him) regular practice was typically 8 rakats of tahajjud followed by 3 rakats of witr.
Witr After Tahajjud
If you pray tahajjud after having already prayed witr after Isha, the scholars differ on whether to repeat witr. The safest approach: pray witr after Isha as normal, and if you rise for tahajjud, simply add more rakats of tahajjud without repeating witr. Some scholars permit a second witr; the Hanafi position is more restrictive.
If you know you will pray tahajjud regularly, you can delay witr to the end of your tahajjud session, praying it as the final rakat or set.
Step-by-Step: How to Pray Tahajjud
Step 1: Wake After Sleeping
Set an alarm for the last third of the night. Place it across the room so you must physically rise to silence it. The act of standing is the hardest part — once you are up, the momentum carries you.
Step 2: Make Wudu
Perform wudu with full attention. The cold water in the night has a clarifying effect on the mind. Make du’a during your wudu as you would any other time.
Step 3: Open with Two Light Rakats
The Prophet (peace be upon him) used to begin tahajjud with two short, light rakats to ease into the prayer. Recite short surahs and use these two rakats to settle your heart and wake your body.
Step 4: Pray Your Main Tahajjud
Proceed in sets of two rakats. In each rakat:
- Recite Al-Fatiha
- Recite a surah or portion of the Quran after Al-Fatiha
- Make ruku (bowing) and sujud (prostration) as normal
The Prophet (peace be upon him) would often recite very long passages in tahajjud — sometimes spending an entire rakat on a few verses, reciting them slowly and reflectively. The key is quality over quantity.
Step 5: Make Du’a in Sujud
The closest the servant is to Allah is in prostration. In tahajjud’s sujud, you have time and privacy that the busy day doesn’t allow. Speak to Allah in your own language. Talk about your life, your family, your fears, your goals, what you need, what you’re grateful for. Do not rush.
Step 6: Conclude with Witr
End your session with witr — either one rakat or three. The Prophet (peace be upon him) would not sleep without praying witr. It is the final act that seals the night’s worship.
What to Recite in Tahajjud
There are no obligatory surahs for tahajjud. Any recitation is valid. However, some options from the prophetic practice:
Al-Baqarah, Al Imran, An-Nisa — the Prophet (peace be upon him) sometimes recited these in full during a single night of tahajjud. This is for the most dedicated practitioners.
The Last Ten Verses of Al-Imran (3:190-200) — the Prophet (peace be upon him) specifically praised these verses and would recite them after waking at night.
Whatever you are memorizing — tahajjud is an excellent time to review and reinforce memorization. The quiet and focus of the night consolidates what was learned during the day.
Short surahs recited slowly — Al-Ikhlas, Al-Falaq, An-Nas, Al-Kafirun, Al-Mulk — familiar surahs recited with full attention to meaning are far better than longer surahs recited on autopilot.
The Opening Du’a of Night Prayer
When the Prophet (peace be upon him) rose for tahajjud, he would begin with this supplication:
Arabic:
اللَّهُمَّ لَكَ الْحَمْدُ أَنْتَ نُورُ السَّمَاوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ أَنْتَ قَيِّمُ السَّمَاوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ
Transliteration:
Allahumma lakal-hamd, anta nurus-samawati wal-ard wa man fihinn, wa lakal-hamd, anta qayyimus-samawati wal-ard wa man fihinn
Translation:
O Allah, all praise is Yours. You are the Light of the heavens and the earth and all that is in them. All praise is Yours — You are the Sustainer of the heavens and the earth and all that is in them. (Bukhari)
This du’a orients the heart beautifully before entering the prayer.
How to Build the Habit
Start With One Night Per Week
Do not commit to tahajjud every night from the beginning. That commitment fails and produces guilt. Choose one night — Thursday night is historically favored because Friday is a blessed day — and make that your tahajjud night for one month. Let success build the habit.
Protect Your Sleep
Tahajjud requires going to bed early enough to get adequate sleep before your alarm. This means protecting the night from late scrolling, late-night content consumption, and the phone’s gravitational pull on your attention after Isha.
The Nafs app can help here: set screen time limits that wind down your phone in the evening, so you actually fall asleep at a reasonable hour rather than running into the night half-awake scrolling and missing your alarm.
Stack It With Fajr
Even if your tahajjud is only two rakats prayed fifteen minutes before Fajr, you have prayed tahajjud. The last third of the night and the Fajr window overlap. Rising slightly early for Fajr and praying two voluntary rakats in the predawn stillness carries much of the same spiritual quality.
What Happens When You Maintain It
Muslims who establish a regular tahajjud practice describe consistent patterns: clearer decision-making, reduced anxiety, a sense of having “already started well” before the day begins, and a feeling of being under watchful care throughout the day.
This is what the Quran hints at when it describes those who spend the night in prostration and standing: “Is one who is devoutly obedient during periods of the night, prostrating and standing, fearing the Hereafter and hoping for the mercy of his Lord, [like one who does not]?” (39:9)
The answer is self-evident. Start tonight.
May Allah grant us the sweetness of the night prayer, open our hearts in sujud, and make our nights a source of light for our days.
Keep Reading
Start with the complete guide: The Productive Muslim’s Guide to Time & Attention
- Tahajjud and Productivity: The Power of the Night Prayer
- How to Wake Up for Fajr: A Practical Islamic Guide
- The Night Prayer Benefits: What the Quran and Sunnah Say
Ready to trade screen time for ibadah? Download Nafs free — 1 minute of worship = 1 minute of screen time.
Want to replace scrolling with ibadah?
1 minute of worship = 1 minute of screen time. Fair exchange.
Download Nafs