← Muhasaba

Funeral rites

Janazah Prayer: The Four Takbirs, the Dua, and What Each School Does

If you are reading this before a funeral, the four steps are immediately below. Everything else on this page can wait.

By Zaman Ishtiyaq, founder of Muhasaba · Updated August 17, 2026

Primary sources: Sahih Muslim 963a, Sahih al-Bukhari 1335, Sahih al-Bukhari 1325, Sahih al-Bukhari 3370, Sunan Abi Dawud 3201.

The prayer in four takbirs

  1. 1st takbir — hands raised, then Surah al-Fatiha (Shafi'i, Hanbali) or the thana (Hanafi).
  2. 2nd takbir — the salawat on the Prophet ﷺ.
  3. 3rd takbir — the dua for the deceased.
  4. 4th takbir — a brief dua, then the salam right and left.

Standing throughout. No ruku', no sujud. Everything between the takbirs is recited silently; only the takbirs and the final salam are said aloud, and only by the imam. About two minutes from start to finish.

What Salatul Janazah Is

The funeral prayer is a prayer of intercession. It has no bowing and no prostration because it is not, structurally, a prayer of worship postures — it is a community standing before Allah to ask forgiveness for one of its dead, framed by four takbirs and closed with a salam.

It is fard kifayah: a communal obligation. If enough people pray it, the duty lifts from everyone. If nobody does, the whole community bears the sin. All four schools agree on this. It is performed with the body present, placed in front of the imam and facing the qiblah, and the congregation forms rows behind him as in any other prayer. Wudu is required, as it is for any salah.

The Four Takbirs, Step by Step

1

First takbir — al-Fatiha (or the thana)

Form the intention silently. Raise both hands and say Allahu akbar, then place the right hand over the left. In the Shafi'i and Hanbali schools, recite Surah al-Fatiha silently. Talha ibn 'Abdullah ibn 'Awf said: "I offered the funeral prayer behind Ibn 'Abbas and he recited al-Fatiha and said, 'You should know that it is the sunnah of the Prophet ﷺ'" (Sahih al-Bukhari 1335). In the Hanafi school the thana is recited here instead — Subhanaka Allahumma wa bihamdika...

2

Second takbir — salawat on the Prophet ﷺ

Say Allahu akbar and recite, silently, the same salawat you recite in the final sitting of every prayer: Allahumma salli 'ala Muhammadin wa 'ala ali Muhammadin, kama sallayta 'ala Ibrahima wa 'ala ali Ibrahim, innaka Hamidun Majid — and the second half beginning Allahumma barik (Sahih al-Bukhari 3370). Most people already know this by heart from the daily prayers; if you are unsure of it, the full text is on our Attahiyat page.

3

Third takbir — the dua for the deceased

Say Allahu akbar and make dua for the person who has died. This is the substance of the prayer — everything else is framing. The fullest narrated wording is given in the next section. If you do not have it memorised, the shorter opening line is sufficient, and so is dua in your own language.

4

Fourth takbir — a brief dua, then the salam

Say Allahu akbar and pause. A short dua is made here — many recite Allahumma la tahrimna ajrahu wa la taftinna ba'dahu, drawn from the closing line of the narrated funeral dua: "O Allah, do not withhold from us the reward and do not lead us astray after him" (Sunan Abi Dawud 3201, graded sahih by al-Albani). Then turn the head to the right — As-salamu 'alaykum wa rahmatullah — and to the left. The prayer is finished.

The Dua for the Deceased, in Full

'Awf ibn Malik was present when the Prophet ﷺ prayed over a body, and memorised the dua he made. Its ending is the reason it is remembered.

اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الأَبْيَضَ مِنَ الدَّنَسِ وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ وَأَهْلاً خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأَدْخِلْهُ الْجَنَّةَ وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ

Allahumma-ghfir lahu warhamhu wa 'afihi wa'fu 'anhu, wa akrim nuzulahu wa wassi' mudkhalahu, wa-ghsilhu bil-ma'i wath-thalji wal-barad, wa naqqihi mina-l-khataya kama naqqayta-th-thawba-l-abyada mina-d-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 'adhabi-l-qabr.

"O Allah, forgive him, have mercy upon him, give him peace and absolve him. Receive him with honour and make his grave spacious; wash him with water, snow and hail. Cleanse him from faults as You would cleanse a white garment from impurity. Requite him with an abode more excellent than his abode, with a family better than his family, and with a mate better than his mate. Admit him to the Garden, and protect him from the torment of the grave." (Sahih Muslim 963a)

The narrator's wording at the very end carries an uncertainty that the collection preserves rather than tidies away: "from the torment of the grave" or "from the torment of the Fire." Either is recited. And 'Awf ibn Malik closed his own report with a sentence that tells you what it is like to hear this dua said over someone: "I earnestly desired that I were this dead body."

A second narrated dua is broader — it prays for everyone present as well as the one who has died, which makes it the natural thing to say when you did not know the deceased well: اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنْثَانَا وَشَاهِدِنَا وَغَائِبِنَا"O Allah, forgive those of us who are living and those of us who are dead, those of us who are present and those of us who are absent, our young and our old, our male and our female" (Sunan Abi Dawud 3201, graded sahih by al-Albani).

For a Woman, for More Than One, for a Child

The narrated dua is in the masculine. The change is mechanical and does not alter a single other word.

Where the Schools Differ

Most short guides to janazah present one school's practice as the practice, which leaves people who were taught otherwise thinking they have been praying it wrong. They have not. The differences are narrow and each rests on evidence.

Al-Fatiha

The Shafi'i and Hanbali schools recite it after the first takbir, on the authority of Ibn 'Abbas, who recited it in the funeral prayer specifically so people would know it was the sunnah (Sahih al-Bukhari 1335). The Hanafi school does not, and recites the thana instead, holding that the janazah is a prayer of supplication rather than of Qur'anic recitation. The Maliki school likewise does not require it.

Raising hands

Shafi'i and Hanbali: the hands are raised at all four takbirs. Hanafi: only at the first. The Maliki position is likewise the first only. Nobody holds the prayer is invalidated by either.

Aloud or silent

Agreed: the imam pronounces the four takbirs and the closing salam audibly so the rows can follow him, and everything recited between them — Fatiha, salawat, dua — is said silently, by the imam and the congregation alike. If you have attended a janazah and heard almost nothing, that was correct.

Number

Four takbirs, in all four schools. A small number of early reports describe more, and some early authorities permitted them; the four-takbir form is what settled and what every mosque you will pray in follows.

The rule for the day itself is simple: follow the imam. You are not responsible for adjudicating between the schools while standing in the row.

If You Do Not Know It and the Prayer Is Today

Attend anyway. Stand in the row, follow the imam's takbirs, and after each one say what you have. If you know al-Fatiha and the salawat from the daily prayers, you already know two of the four positions. For the third, Allahumma-ghfir lahu warhamhu — six words — is enough, and dua for the deceased in English is valid dua. What is not required of you is silence out of embarrassment.

If you arrive after the prayer has begun, join in, say your takbirs with the imam from where he is, and complete the remaining takbirs on your own after he gives the salam, before the body is lifted. If the body has already been buried, the prayer can still be offered at the grave.

What Is Promised to Those Who Attend

Abu Hurairah reported the Prophet ﷺ said: "Whoever attends the funeral procession till he offers the funeral prayer for it will get a reward equal to one qirat, and whoever accompanies it till burial will get a reward equal to two qirats." He was asked what two qirats were. He replied: "Like two huge mountains" (Sahih al-Bukhari 1325).

The measure is deliberate. A qirat is a small weight — a fraction of a coin. The image inverts it: the smallest unit of account, and it turns out to be a mountain. This is also the practical answer to whether it is worth rearranging a day for a funeral you were not close to. It is, and staying to the burial doubles it.

After the Burial

The janazah is over in two minutes. What follows is not, and Islam does not pretend otherwise. The prayer discharged an obligation; it did not close anything for the people standing in the row who loved the person on the ground in front of them.

The dua does not expire with the funeral. Allahumma-ghfir lahu warhamhu is as valid on a Tuesday in eleven months as it was at the graveside, and for most people it is the only thing they can still actively do. Making it a fixed part of your own routine — after a particular prayer, at a particular hour — is how it survives the weeks when it would otherwise be forgotten. This is where muhasaba, the nightly practice of taking honest account of your own day, does something a memorised list cannot: it asks, each evening, what you actually did — including whether you made the dua you intended to make for someone who can no longer make it for themselves. Over months, that record is the difference between an intention and a practice.

A funeral also does the same work on the person attending as it does for the person buried. You have just watched, in compressed form, what will be done for you: a short prayer, a few rows of people, and whatever record you left behind. That is not a morbid thought in Islam — it is the standing argument for taking account of yourself now, while the accounting is still yours to do. On the grief that follows, see dua for grief and loss; on the patience it asks for, sabr; on what was decreed and what was not, qadr; and on what the dua is asking for on their behalf, Jannah.

Frequently Asked Questions

How do you pray salatul janazah step by step?

Standing, facing the qiblah, in four takbirs and no more: (1) first takbir — Surah al-Fatiha in the Shafi'i and Hanbali schools, the thana in the Hanafi school; (2) second takbir — the salawat on the Prophet ﷺ, the same one recited in the final sitting of every prayer; (3) third takbir — the dua for the deceased; (4) fourth takbir — a brief dua, then the salam to the right and the left. There is no ruku' and no sujud. Everything between the takbirs is recited silently. The whole prayer takes about two minutes.

What is the dua recited in janazah prayer?

'Awf ibn Malik memorised the Prophet ﷺ making this dua over a body: "O Allah, forgive him, have mercy upon him, give him peace and absolve him. Receive him with honour and make his grave spacious; wash him with water, snow and hail. Cleanse him from faults as You would cleanse a white garment from impurity. Requite him with an abode more excellent than his abode, with a family better than his family, and with a mate better than his mate. Admit him to the Garden, and protect him from the torment of the grave" (Sahih Muslim 963a). 'Awf added: "I earnestly desired that I were this dead body." A second narrated dua, general to everyone present, begins "Allahumma-ghfir li hayyina wa mayyitina" (Sunan Abi Dawud 3201, graded sahih by al-Albani).

Is janazah prayer obligatory?

It is fard kifayah — a communal obligation. If a sufficient number of Muslims pray it, the obligation is discharged for everyone; if nobody does, the entire community is sinful. This is agreed across the four schools. Practically it means no individual is personally required to attend a given funeral, but somebody must, and the reward for attending is individual: "Whoever attends the funeral procession till he offers the funeral prayer for it will get a reward equal to one qirat, and whoever accompanies it till burial will get a reward equal to two qirats" — described as "like two huge mountains" (Sahih al-Bukhari 1325).

What is the janazah dua for a woman or a child?

For a woman, the wording is identical and only the pronouns change: every masculine -hu suffix becomes -ha. "Allahumma-ghfir laha warhamha wa 'afiha wa'fu 'anha", and so on through the dua. For more than one deceased, the plural -hum is used. For a child, the jurists of all four schools direct that you do not ask forgiveness for sins the child does not have; instead you ask that the child be a means of reward and intercession for the parents, and that the parents be given patience. The dua of Sunan Abi Dawud 3201 covers this directly, since it names "our young and our old" and asks Allah not to withhold the reward of the loss or let those left behind go astray after it.

Do the madhhabs pray janazah differently?

In small ways, yes, and all of them are argued from narrations. The Shafi'i and Hanbali schools recite Surah al-Fatiha after the first takbir, citing Ibn 'Abbas, who recited it in the funeral prayer and said it was the sunnah (Sahih al-Bukhari 1335); the Hanafi school recites the thana instead and treats the prayer as dua rather than recitation. The Shafi'i and Hanbali schools raise the hands at all four takbirs; the Hanafi school raises them only at the first, and the Maliki position is likewise that they are raised at the first. All four agree the prayer is four takbirs, standing, with no ruku' or sujud, and that the imam says the takbirs audibly while everything between them is recited silently. Following the practice of the mosque you are standing in is correct in every case.

The prayer ends. The dua does not.

Keep making it, on the days you would otherwise forget.

Muhasaba is a quiet nightly practice of taking account of your own day — what you did, what you meant to do, and who you remembered in dua. Private, unshared, free on iOS.

Download on the App Store

For the weeks after: Dua for grief and loss in Islam →

On patience through it: Sabr — the three kinds of patience →

On what was written: Qadr — divine decree and human choice →