How to Pray Salat al-Janazah (The Islamic Funeral Prayer)
Salat al-Janazah is the prayer Muslims offer for someone who has died — a final act of love, forgiveness, and farewell. It is unlike any other salah: you pray it standing the whole time, there is no bowing or prostration, and it is built around four simple takbeers. This guide walks through exactly how to pray it, where to stand, and what to say after each takbeer — including the full janazah dua in Arabic, transliteration, and English.
Quick Answer — How to Pray Janazah
- Stand facing the Qibla with the body in front of the imam. Make the intention to pray Salat al-Janazah.
- 1st takbeer: raise your hands, say Allahu Akbar, fold your hands, and recite Surah al-Fatiha.
- 2nd takbeer: recite the Salawat (Durood) on the Prophet ﷺ.
- 3rd takbeer: make dua for the deceased.
- 4th takbeer: pause briefly, then give the salam to the right and left.
The entire prayer is performed standing — there is no ruku (bowing) and no sujood (prostration).
What Is Salat al-Janazah?
Janazah (جَنَازَة) refers both to the deceased person and to the funeral itself; Salat al-Janazah is the prayer offered over them. It is a collective supplication in which the community stands together to ask Allah to forgive the one who has died and to admit them into Paradise. Muslims believe that these sincere prayers genuinely benefit the deceased — which is why gathering to pray is considered one of the last rights a Muslim owes a fellow Muslim.
The Prophet Muhammad ﷺ listed it among the duties Muslims have toward one another:
“The rights of one Muslim over another are five: returning the greeting, visiting the sick, following funeral processions, accepting an invitation, and responding to one who sneezes.”
— Sahih al-Bukhari 1240, Sahih Muslim 2162
A communal obligation (fard kifayah)
Salat al-Janazah is fard kifayah — a communal obligation. This means that if enough members of the community pray it, the duty is discharged for everyone. But if no one prays over a deceased Muslim, then everyone who knew of the death shares in the sin. It sits between a personal obligation (like the five daily prayers) and a purely voluntary act: the community as a whole must make sure it happens.
Before the Prayer: Conditions & Positioning
Salat al-Janazah is a genuine prayer, so it carries the same core conditions as any salah, plus a few specific to the funeral. By the time the prayer begins, the body has already been washed (ghusl) and wrapped in the shroud (kafan) and is laid on a bier facing the Qibla.
Be in a state of purity
You need valid wudu (or ghusl if required), just as for any prayer. Funerals come together fast, so make wudu the moment you arrive.
Face the Qibla
The whole congregation faces the Qibla — the direction of the Kaaba in Mecca — with the body placed between the imam and the Qibla.
The body is present, washed and shrouded
The deceased Muslim is washed, shrouded, and placed in front of the imam. (The one exception is the absentee prayer, Salat al-Gha'ib, covered below.)
Cover the awrah and stand in rows
Dress as you would for any prayer and line up in straight rows behind the imam. It is recommended (mustahabb) to form at least three rows.
Where does the imam stand?
The imam stands facing the Qibla with the body in front of him, and the position along the body depends on the school of fiqh — a small, well-known difference:
| School | Deceased man | Deceased woman |
|---|---|---|
| Maliki, Shafi'i, Hanbali (majority) | Level with the head / chest | Level with the middle (waist) |
| Hanafi | Level with the chest of the deceased, regardless of gender | |
Do not let the details of positioning worry you if you are simply joining the rows — as a member of the congregation you just line up behind the imam and follow his takbeers. The positioning matters most for whoever is leading.
How to Pray Janazah: The Four Takbeers
Salat al-Janazah has no ruku and no sujood. You remain standing from beginning to end, and the prayer is structured around four takbeers. Raise your hands at the first takbeer (the Hanafi school raises them only at the first; the Shafi'i and Hanbali schools raise them at each of the four). After each takbeer you recite something different, silently, then wait for the imam's next takbeer.
| Takbeer | What you recite |
|---|---|
| 1st takbeer | Surah al-Fatiha (the Hanafi school recites the opening praise — the Thana — instead) |
| 2nd takbeer | The Salawat (Durood) on the Prophet ﷺ — as recited in the tashahhud |
| 3rd takbeer | The dua for the deceased (the heart of the prayer) |
| 4th takbeer | A brief pause, then the salam to end the prayer |
Takbeer 1 — intention and al-Fatiha
Make the intention in your heart to pray Salat al-Janazah behind the imam. Raise your hands and say Allahu Akbar, then place your right hand over your left as in normal prayer. Recite Surah al-Fatiha. In the Hanafi school you instead recite the opening praise (the Thana): Subhanaka Allahumma wa bihamdika…
Takbeer 2 — Salawat on the Prophet ﷺ
Say Allahu Akbar a second time and recite the Salawat (Durood Ibrahim) — the same blessing upon the Prophet ﷺ that you recite in the sitting (tashahhud) of every prayer: Allahumma salli ‘ala Muhammadin wa ‘ala aali Muhammad…
Takbeer 3 — dua for the deceased
Say Allahu Akbara third time and make sincere supplication for the one who has died and for all the believers. This is the essence of the funeral prayer — the whole gathering exists to beg Allah's mercy for the deceased. The exact wording taught by the Prophet ﷺ is given in the next section.
Takbeer 4 — the salam
Say Allahu Akbar a fourth time and pause briefly. Some add a short dua here, such as Allahumma la tahrimna ajrahu wa la taftinna ba‘dahu (“O Allah, do not deprive us of his reward and do not test us after him”). Then end the prayer by turning your head to the right saying As-salamu ‘alaikum wa rahmatullah, and then to the left.
The Janazah Dua in Full
After the third takbeer, the most authentic supplication is the one the Prophet ﷺ made when praying over a deceased companion, reported by ‘Awf ibn Malik in Sahih Muslim. Recite it silently:
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ، وَعَافِهِ وَاعْفُ عَنْهُ، وَأَكْرِمْ نُزُلَهُ، وَوَسِّعْ مُدْخَلَهُ، وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ، وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الْأَبْيَضَ مِنَ الدَّنَسِ، وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ، وَأَهْلًا خَيْرًا مِنْ أَهْلِهِ، وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ، وَأَدْخِلْهُ الْجَنَّةَ، وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ وَعَذَابِ النَّارِ
“Allahumma-ghfir 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-th-thawbal-abyada minad-danas, wa abdilhu daran khayran min darihi, wa ahlan khayran min ahlihi, wa zawjan khayran min zawjihi, wa adkhilhu-l-jannata, wa a‘idhhu min ‘adhabil-qabri wa ‘adhabin-nar.”
“O Allah, forgive him and have mercy on him, keep him safe and pardon him, honour his resting place and make his entrance wide; wash him with water, snow and hail, and cleanse him of sins as a white garment is cleansed of dirt. Give him a home better than his home, a family better than his family, and a spouse better than his spouse; admit him into Paradise and protect him from the punishment of the grave and the punishment of the Fire.” (Sahih Muslim 963)
The janazah dua for a female
When praying over a woman, keep the dua identical but change the masculine pronoun endings (-hu) to feminine ones (-ha): begin Allahumma-ghfir laha warhamha, wa ‘afiha wa‘fu ‘anha… and continue the pattern through to wa adkhilha-l-jannah. If you are unsure of the wording or praying over more than one person, the general supplication below covers everyone regardless of gender.
The general dua (for the living and the dead)
Many people also recite this widely-reported dua, which asks forgiveness for the whole community. It is especially useful when you do not know the deceased or are praying over several people:
اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا، وَشَاهِدِنَا وَغَائِبِنَا، وَصَغِيرِنَا وَكَبِيرِنَا، وَذَكَرِنَا وَأُنْثَانَا، اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الْإِسْلَامِ، وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الْإِيمَانِ
“Allahumma-ghfir li hayyina wa mayyitina, wa shahidina wa gha'ibina, wa saghirina wa kabirina, wa dhakarina wa unthana. Allahumma man ahyaytahu minna fa-ahyihi ‘alal-Islam, wa man tawaffaytahu minna fa-tawaffahu ‘alal-iman.”
“O Allah, forgive our living and our dead, those present and those absent, our young and our old, our males and our females. O Allah, whoever of us You keep alive, keep him alive upon Islam, and whoever of us You take in death, take him upon faith.” (Sunan Abu Dawud 3201, Jami' at-Tirmidhi 1024)
The dua for a deceased child
A child who dies before the age of accountability has no sins to be forgiven, so scholars teach a different supplication that asks Allah to make the child a source of reward and intercession for the parents. A commonly-taught wording is: Allahumma-j‘alhu lana faratan, waj‘alhu lana ajran wa dhukhran— “O Allah, make him a forerunner and reward and treasure for us.”
How the Schools of Fiqh Differ
The core of Salat al-Janazah — four takbeers, standing, no ruku or sujood, ending with the salam — is agreed upon across all four Sunni schools. The differences are in the details, and none of them invalidate a prayer prayed according to another school:
After the first takbeer
The Shafi'i, Hanbali, and Maliki schools recite Surah al-Fatiha. The Hanafi school recites the opening praise (the Thana, 'Subhanaka Allahumma…') and considers al-Fatiha to be recited as praise rather than as a pillar.
Raising the hands
The Shafi'i and Hanbali schools raise the hands at all four takbeers. The Hanafi school raises them only at the first. The Maliki school does not raise the hands after the first (and some Malikis do not raise at all).
The imam's position
The majority place the imam at the head/chest of a man and the middle of a woman; the Hanafi school places him at the chest for everyone (see the table above).
Number of salams
Some give one salam facing forward or to the right; others give two, to the right and the left. All are valid ways the prayer has been transmitted.
The Absentee Funeral Prayer (Salat al-Gha'ib)
Sometimes a Muslim dies far away — in another city or country — and the community cannot be present at the body. In that case Muslims may offer Salat al-Gha'ib, the funeral prayer in absentia. It is prayed exactly like the ordinary Janazah prayer — four takbeers while facing the Qibla — but with no body in front of the congregation.
The basis is the authentic report that the Prophet ﷺ announced the death of the Negus (An-Najashi), the righteous king of Abyssinia, on the day he died, took his companions out to the prayer place, lined them up in rows, and prayed over him though the body was in another land (Sahih al-Bukhari 1245, Sahih Muslim 951). Scholars differ on how broadly this applies: some restrict it to a person no one else has prayed over, while others permit it more widely for prominent or beloved Muslims.
The Immense Reward of Attending
Praying over a deceased Muslim and staying until the burial is one of the most rewarded acts a believer can do, precisely because the person can no longer earn anything for themselves — you are giving purely for the sake of Allah. The Prophet ﷺ said:
“Whoever attends the funeral until the prayer is offered will have one qirat, and whoever attends until the burial is complete will have two qirats.” It was asked, “What are the two qirats?” He said, “Like two great mountains.”
— Sahih al-Bukhari 1325, Sahih Muslim 945
Beyond the reward, the presence of many sincere worshippers is a mercy for the deceased. In another narration the Prophet ﷺ said that when a group of Muslims — numbering a hundred, or three rows — pray over someone and intercede for them, that intercession is accepted. This is why communities are encouraged to fill the rows and pray with presence of heart, not merely to attend.
Common Mistakes to Avoid
❌ Trying to bow or prostrate
Instead: There is no ruku and no sujood in Salat al-Janazah. You remain standing the entire time — only the four takbeers and the salam involve movement.
❌ Arriving without wudu
Instead: The prayer is short and begins quickly. Make wudu the moment you reach the mosque so you are not scrambling — or excluded — when the imam starts.
❌ Not knowing what to do if you join late
Instead: If you arrive after the imam has begun, join in, make your intention, and follow from the current takbeer. After the imam gives salam, complete the remaining takbeers (with a brief dua or silence) on your own, then give salam.
❌ Reciting the duas aloud
Instead: In Salat al-Janazah, al-Fatiha and the supplications are recited silently. Only the takbeers and the closing salam are said audibly, and normally only by the imam.
❌ Using the male wording for a woman
Instead: Remember to switch the pronouns from '-hu' (him) to '-ha' (her) when praying over a female, or use the general dua that covers everyone.
Frequently Asked Questions
How many takbeers are in Salat al-Janazah?
Four. After the first you recite al-Fatiha (or the Thana in the Hanafi school), after the second the Salawat on the Prophet ﷺ, after the third the dua for the deceased, and after the fourth you give the salam. The whole prayer is standing — no ruku and no sujood.
Is the funeral prayer obligatory?
It is fard kifayah — a communal obligation. If enough people in the community pray it, the duty is lifted from all; if no one does, everyone who knew is sinful. Attending is also hugely rewarded (one qirat for the prayer, two if you stay until burial).
What is the janazah dua for a female?
The same dua with feminine pronouns: 'Allahumma-ghfir laha warhamha, wa 'afiha wa'fu 'anha…' instead of the '-hu' endings. When in doubt, the general dua 'Allahumma-ghfir li hayyina wa mayyitina' covers everyone.
Do you need wudu for Salat al-Janazah?
Yes. It is a real prayer, so wudu (or ghusl if needed), facing the Qibla, and covering the awrah are all required — exactly as in the five daily prayers.
Can women pray the funeral prayer?
Yes. Women may pray Salat al-Janazah and did so in the time of the Prophet ﷺ. They pray in rows behind the men. What is discouraged for women is following the procession to the graveyard, not the prayer itself.
What if I join the prayer late?
Join whenever you arrive and follow the imam from the current takbeer. When the imam gives salam, stand and complete the takbeers you missed on your own — reciting a short dua or staying silent between them — then give your own salam.
Can you pray janazah for someone who died far away?
Yes — this is Salat al-Gha'ib, the absentee funeral prayer, prayed just like a normal Janazah but with no body present. The Prophet ﷺ prayed this way for the Negus of Abyssinia. Schools differ on exactly when it applies.
Related Guides
Face the Qibla and never miss a congregation
Salat al-Janazah faces the Kaaba, just like the five daily prayers. Find your exact Qibla direction, then check today's prayer times for your city — Fajr through Isha with a live countdown to the next jama'ah.