- Published on
Dua for Funeral Prayer: The Salatul Janazah Supplication in Full
- 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 and you have to go. A family member, a neighbor, someone from the community. The janazah prayer is in an hour. And you realize, standing there, that you are not sure of the full dua — the one you are supposed to say after the third takbir, the one that is specifically for the person in front of you.
This is an unsettling feeling. The janazah prayer is not long — it takes five minutes. But those five minutes are among the most weighty in Islamic practice. You are standing witness over someone who has just left this world. You are their advocate before Allah. The dua you make is being made for a specific person in the most consequential moment of their existence.
Knowing this dua — really knowing it, not just fumbling through it — is one of those things that every Muslim should take care of before the moment arrives.
The Dua for Funeral Prayer
The dua said after the third takbir in Salatul Janazah:
اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا، وَشَاهِدِنَا وَغَائِبِنَا، وَصَغِيرِنَا وَكَبِيرِنَا، وَذَكَرِنَا وَأُنْثَانَا
Allahummaghfir li-hayyina wa mayyitina, wa shahidina wa gha'ibina, wa saghirina wa kabirina, wa dhakarana wa unthana.
"O Allah, forgive our living and our dead, those present and those absent, our young and our old, our males and our females." — (Abu Dawud 3201, Ibn Majah 1498)
Then the dua continues for the specific deceased person:
اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الإِسْلاَمِ، وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الإِيمَانِ
Allahumma man ahyaytahu minna fa-ahyihi 'alal-Islam, wa man tawaffaytahu minna fa-tawaffahu 'alal-iman.
"O Allah, whoever among us You keep alive, let him live upon Islam, and whoever among us You cause to die, let him die upon faith." — (Abu Dawud 3201)
The extended dua specifically for the deceased — said with the pronoun adjusted for male (hu) or female (ha):
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ، وَأَكْرِمْ نُزُلَهُ، وَوَسِّعْ مُدْخَلَهُ، وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ
Allahummaghfir lahu warhamhu wa 'afihi wa'fu 'anhu, wa akrim nuzulahu, wa wassi' mudkhalahu, waghsilhu bil-ma'i wath-thalji wal-barad.
"O Allah, forgive him, have mercy on him, give him well-being, pardon him, honor his reception, widen his entrance (into the grave), and wash him with water, snow, and hail." — (Muslim 963)
The dua continues: Wa naqqihi minal-khataya kama yunaqqath-thawbul-abyadu minad-danas — "And purify him from sins as a white garment is purified of dirt. And replace his home with a better home, and his family with a better family, and admit him into Jannah, and protect him from the punishment of the grave and the punishment of the Fire."
When praying for a female, replace lahu (him) with laha (her), nuzulahu with nuzulaha, and so on throughout.
The Story Behind the Janazah Prayer
The structure of Salatul Janazah was established by the Prophet (peace be upon him) himself. He did not leave the prayer for the dead as something improvised — he gave it a precise form with specific words.
What is striking about the dua above is its scope. It begins with the entire community — the living, the dead, those present, those absent. The individual person lying before you is surrounded by a circle of prayer that includes the whole ummah. This is not accidental. The janazah prayer is an act of communal advocacy on behalf of every Muslim who has died and will die.
The Prophet (peace be upon him) also said: "Pray the janazah prayer for your dead — for it is a supplication for them." (Ibn Majah 1497) He said this to make clear that the prayer is not just ceremonial. It is functional. Your sincerity in these few minutes has real weight in the scale of what the deceased will encounter.
He also said about those who pray janazah: "Whoever follows the funeral procession of a Muslim out of faith and hoping for reward, and remains with it until the prayer is finished and the burial is complete, will return with two qirats of reward, each like Mount Uhud." (Bukhari 47) The janazah prayer is a massive opportunity for the one who prays it, not just the one who receives it.
How to Learn and Internalize the Janazah Dua
Most Muslims attend a handful of janazah prayers in their lives before someone they love is in that position. The time to learn the dua is not when you are standing at the prayer — it is now, when there is no urgency and you can give it proper attention.
Learn it in layers:
Start with the shortest valid version: Allahummaghfir lahu warhamhu — "O Allah, forgive him and have mercy on him." This two-phrase dua is sufficient at minimum. Once you know this, add the next lines from Muslim 963 over a week or two until the full dua is natural.
Practice saying it with the correct pronoun:
The dua adjusts by gender. When you practice, say it both ways: once for a male (lahu) and once for a female (laha). This prepares you to switch automatically without thinking in the prayer itself, when your mind is in a different state.
Write out the dua and keep it somewhere visible:
During the learning period, having a written copy near your prayer area helps. Some Muslims keep a small card in their wallet for the janazah dua for exactly this reason.
Understand what you are saying:
The dua is asking for: forgiveness, mercy, well-being, pardon, an honorable reception, a widened grave, purification from sins, a better home, a better family, entrance into Jannah, and protection from the punishment of the grave and the Fire. Knowing what each phrase is asking for transforms it from a recitation you rush through into a genuine, focused supplication. You are advocating for a person in the most important moment of their existence. Say each phrase as if you mean it — because you do.
Connect it to daily remembrance of death:
The Prophet (peace be upon him) said: "Remember death frequently — the destroyer of pleasures." (Tirmidhi 2307) Learning the janazah dua is an act of that remembrance. It is a way of staying in relationship with the reality that everyone around you, and you yourself, will one day need these exact words said on their behalf.
Build Your Janazah Knowledge Before You Need It
DeenBack helps you memorize and review essential duas — including the janazah supplication — so you are prepared and present when the moment comes.
Free download. Premium features available in-app.
Related Duas
Dua for the deceased: The dua for the deceased covers a broader set of supplications for those who have passed — what to say at the grave, what to say when you hear of a death, and ongoing charity and dua on their behalf.
Dua for protection: Learning to ask Allah for protection in life is connected to preparing for death well. The dua for protection covers the prophetic shield duas that can be part of a daily practice.
Dua for health: Many janazah prayers are for those who suffered illness. The dua for health and dua for shifa are for when a loved one is still alive and you are interceding for their recovery.
Dua for morning: The morning adhkar can include a brief remembrance of death that keeps the janazah dua and the reality of akhirah fresh in daily life.
Common Questions
Is Salatul Janazah fard (obligatory)?
Salatul Janazah is fard kifayah — a communal obligation. This means the entire Muslim community is obligated to ensure it is performed, but if enough people perform it, the obligation lifts from the rest. It does not become individually obligatory unless there is no one else to pray it — in which case whoever is present must pray it.
What if I missed some of the janazah prayer — is my prayer valid?
If you miss the takbirs at the beginning, you can join at whatever point the prayer is at and make up the missed takbirs at the end before the salam. Scholars differ on the method, but the general principle is that you follow what you catch and make up what you missed — similar to catching a congregational prayer late.
Can the janazah prayer be performed more than once for one person?
Yes. If a Muslim was not informed of the death and missed the janazah prayer, they can pray it at the grave within a month of the burial according to the majority of scholars, based on the Prophet's practice. (Bukhari 1337) Beyond a month, the scholarly consensus is that it is no longer valid to pray janazah at the grave, though dua for the deceased continues forever.
What is the ruling on praying janazah for someone who did not pray?
This is a genuine question people face. The majority scholarly position is that you still pray janazah for a Muslim who was negligent in their prayers — their judgment is with Allah, and your prayer is advocacy on their behalf. You pray for their forgiveness precisely because they need it.
Closing
The janazah prayer is five minutes. But those five minutes represent something that no other prayer does: your full intercession for a soul at the threshold of the next world.
Learn the dua now. Say it with meaning today so that when the moment comes — and it will come — you are ready to give the person in front of you the best possible version of it. That preparation is itself an act of care, for them and for the community they leave behind.
Learn the Duas That Matter Before You Need Them
DeenBack is built to help you memorize and internalize essential Islamic duas — so when a moment like Salatul Janazah arrives, you are fully present and prepared.
Free download. Premium features available in-app.
Frequently Asked Questions
What is the dua said in Salatul Janazah?
The main dua in the funeral prayer is said after the third takbir: Allahummaghfir li-hayyina wa mayyitina — O Allah, forgive our living and our dead. The full version from Abu Dawud 3201 is longer and more comprehensive, asking for mercy, forgiveness, and Jannah for the deceased.
How many takbirs are in Salatul Janazah?
There are four takbirs in Salatul Janazah. After the first: recite Surah Al-Fatiha. After the second: send salawat on the Prophet (the Ibrahimi salawat). After the third: make the main dua for the deceased. After the fourth: give salam on both sides to conclude.
What do you say after the fourth takbir in janazah?
After the fourth takbir, you give the salam — As-salamu alaykum wa rahmatullah — to the right side, and optionally to the left as well. No additional dua is said after the fourth takbir. The prayer concludes with the salam.
Can women attend and pray Salatul Janazah?
Yes, women can pray Salatul Janazah. There is no prohibition on women attending the funeral prayer itself. The majority of scholars, based on hadith evidence, do permit women to pray janazah at the masjid or designated prayer area, though attending the burial procession to the graveyard is a different issue with more scholarly disagreement.
What if I don't know the full janazah dua — can I use a shorter version?
Yes. The minimum dua required in Salatul Janazah after the third takbir is: Allahummaghfir lahu (if the deceased is male) or Allahummaghfir laha (if female) — O Allah, forgive him/her. Even this short supplication is valid. The longer dua from Abu Dawud 3201 is the preferred Sunnah, but it should be memorized gradually. Start with what you know and build.
