- Published on
How to Pray Janazah: A Step-by-Step Guide to the Funeral Prayer
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • Deen Back
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

The call comes unexpectedly. Someone in the community has passed, and the Janazah prayer is announced. You stand in the rows and realise — you are not entirely sure what comes after the first takbeer.
You are not alone. Janazah prayer is something most Muslims only encounter at difficult moments, when composure and focus are hardest to find. Knowing it before you need it is how you show up fully when it matters most.
This guide walks through Salat al-Janazah step by step — not just the mechanics, but the meaning behind each movement.
Why Janazah Prayer Matters
The Prophet ﷺ said:
"Whoever follows a Muslim's funeral, prays over him, and stays until he is buried will return with two qirats of reward. Each qirat is like the size of Mount Uhud. Whoever prays over him and returns before he is buried returns with one qirat." — (Sahih Bukhari 1325)
Janazah prayer is not just a ritual duty — it is an act of mercy toward the deceased and a reminder for the living. Standing before the covered body of a Muslim you knew (or even a stranger) strips away the noise of everyday life and forces you to face the reality that every soul is destined to return.
This is also why the Prophet ﷺ recommended attending funerals as a practice to soften the heart and reduce attachment to the dunya.
Conditions and Requirements
Before beginning, ensure:
- Wudu (ablution) is complete — Janazah prayer requires the same purity as the five daily prayers
- Qibla direction is observed — you face the Ka'bah
- The body is present — the prayer is prayed in the presence of or nearby the deceased
- Niyyah (intention) is made — silently intend to pray Janazah for this specific deceased person
The prayer has no ruku (bowing) and no sujood (prostration). You stand throughout.
Step-by-Step: How to Pray Janazah
Step 1: Stand in Rows
The Imam stands near the body (facing away from the congregation, toward the deceased). The congregation lines up behind the Imam. The more rows formed, the better — the Prophet ﷺ mentioned a specific virtue for those whose Janazah prayer is attended by large numbers.
Step 2: First Takbeer — Al-Fatiha
Raise your hands to your earlobes and say:
اللَّهُ أَكْبَرُ Allahu Akbar "Allah is the Greatest."
Fold your hands on your chest (right hand over left, as in regular prayer).
Recite Surah Al-Fatiha silently.
Some schools also recommend reciting a brief dua for seeking Allah's refuge (ta'awwudh) before Al-Fatiha, as in regular prayer. Both practices are valid.
Step 3: Second Takbeer — Durood Ibrahim
Raise your hands and say Allahu Akbar again.
Now recite the Durood Ibrahim (the same one recited in the tashahhud of regular prayer):
اللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ إِنَّكَ حَمِيدٌ مَجِيدٌ
Allahumma salli 'ala Muhammadin wa 'ala ali Muhammadin kama sallayta 'ala Ibrahima wa 'ala ali Ibrahim, innaka Hamidun Majid.
"O Allah, send Your blessings upon Muhammad and upon the family of Muhammad, as You sent Your blessings upon Ibrahim and the family of Ibrahim. Verily, You are the Most Praiseworthy, the Most Glorious."
Learn Islamic Duas and Build Daily Worship Habits
The DeenBack app helps you learn and memorise essential duas — including funeral prayer supplications — and track your daily worship practice with streaks and reminders.
Free download. Premium features available in-app.
Step 4: Third Takbeer — Dua for the Deceased
Raise your hands and say Allahu Akbar again.
Now make the specific supplication for the deceased. The most authentic and comprehensive dua, narrated in Abu Dawud and authenticated:
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الأَبْيَضَ مِنَ الدَّنَسِ
Allahumma ighfir lahu warhamhu wa 'afihi wa'fu 'anhu wa akrim nuzulahu wa wassi' mudkhalahu waghsilhu bil-ma'i wath-thalji wal-barad wa naqqihi minal-khataya kama naqqayta ath-thawba al-abyada minad-danas.
"O Allah, forgive him, have mercy on him, grant him well-being, pardon him, honour his reception, widen his entrance (into the grave), wash him with water, snow and hail, and purify him from sins as white cloth is purified from dirt." — (Abu Dawud 3201)
Note: If the deceased is a woman, change lahu (for him) to laha (for her). If multiple deceased, use lahum (for them).
Shorter acceptable dua: If you do not know the full dua, you may say:
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ
Allahumma ighfir lahu warhamhu.
"O Allah, forgive him and have mercy on him."
Step 5: Fourth Takbeer — Brief Pause, Then Salam
Raise your hands and say Allahu Akbar a final time.
After this takbeer, there is a brief pause. You may make a short personal dua here for the deceased or for yourself. Then give:
One tasleem to the right:
اَلسَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللّٰهِ
As-salamu 'alaykum wa rahmatullah.
Some schools give two salams (both right and left), as in regular prayer. The majority view is one salam; both are valid.
The prayer is complete.
Common Scenarios and Rulings
Arriving Late
If you join mid-prayer, say the takbeer and join wherever the Imam is. After the Imam finishes, complete the remaining takbeers you missed (reciting Al-Fatiha, Durood, and dua in order) before the body is removed.
Praying Over an Absent Deceased (Salat al-Gha'ib)
The Prophet ﷺ prayed over the Negus (Najashi) of Abyssinia in his absence when news of his death arrived. Most scholars consider this permissible for Muslims who died far away and had no Janazah performed over them.
Praying Over a Child
The dua changes slightly for a child who has not reached the age of accountability:
اللَّهُمَّ اجْعَلْهُ لَنَا فَرَطًا وَسَلَفًا وَأَجْرًا
Allahumma ij'alhu lana faratan wa salafan wa ajra.
"O Allah, make him a forerunner, a predecessor and a reward for us."
Praying Over Multiple Deceased
One Janazah prayer can cover multiple deceased. The Imam includes all of them in the dua (lahum).
Making Janazah a Habit of Mercy
The Janazah prayer is one of the rights a Muslim has over fellow Muslims. The Prophet ﷺ listed visiting the sick, following the funeral, and praying over the deceased among the duties of brotherhood in Islam.
If there is a Janazah prayer announced in your masjid and you are free to attend — go. Even for someone you did not know well. The act of standing in those rows recalibrates your sense of what actually matters.
It also makes the prayer familiar before you desperately need it to be.
For related practices, see how to pray salah correctly and dua for the deceased for supplications you can make for the dead at any time.
Common Questions
Do I need to be wudu for Janazah prayer?
Yes. Full ritual purity is required, the same as for the five daily prayers. If you cannot make wudu (no water available), tayammum is permissible.
What if I forget which takbeer I am on?
If you genuinely lose track, follow the Imam closely. The Imam will say each Allahu Akbar audibly, which guides the congregation. If you still miss a section, completing it after the Imam's salam is acceptable.
Can the Janazah prayer be prayed at any time?
There are three prohibited prayer times where Janazah should not be prayed: at sunrise (until the sun rises completely), exactly at noon, and at sunset. Outside these windows, it can be prayed at any time.
What if there is no Imam available?
Any Muslim who knows the prayer can lead it. Priority is given in this order: the deceased's closest male relative, then the local religious authority, then any knowledgeable Muslim the family chooses.
Closing
Salat al-Janazah is one of the most powerful reminders available to a living Muslim. Standing in those rows — whether for a stranger or for someone you loved — forces a reckoning with what actually matters.
Every body that lies before you was someone who had plans, worries, and habits. Now they are gone, and the only thing that followed them is their deeds.
Learn the prayer now, while your mind is clear. Show up when it is needed. And let each Janazah you attend remind you to invest the time you have left in what will benefit you on the day you need it most.
Build Habits That Matter Before It Is Too Late
The DeenBack app helps you build daily habits of dhikr, dua, and Quran that carry reward in this life and the next. Every streak is a deposit you take with you.
Free download. Premium features available in-app.
Frequently Asked Questions
How many takbeers are in Janazah prayer?
There are four takbeers (Allahu Akbar) in Salat al-Janazah. After the first, you recite Al-Fatiha. After the second, Durood Ibrahim. After the third, the specific dua for the deceased. After the fourth, you give one salam to the right and the prayer ends.
Is Janazah prayer fard?
Salat al-Janazah is fard kifayah — a collective obligation. If some members of the community perform it, the obligation is fulfilled for all. However, if no one prays it, the entire community bears the sin. Every Muslim should know how to perform it.
Can women pray Janazah?
Yes. Women can and should pray Janazah prayer. While women are discouraged from following the funeral procession to the cemetery, praying the funeral prayer itself is permissible and recommended for them, especially for deceased family members.
What do you say in the third takbeer of Janazah?
After the third takbeer, you recite a specific dua for the deceased. The most authentic dua is: Allahumma ighfir lahu warhamhu wa 'afihi wa'fu 'anhu — O Allah, forgive him, have mercy on him, grant him well-being, and pardon him. (Abu Dawud 3201)
Can you pray Janazah without wudu?
No. Wudu (ritual purity) is required for Janazah prayer, just like the five daily prayers. If you do not have wudu, you must make it before joining the prayer. Tayammum is permissible if water is unavailable.
