Dua & Dhikr
Published on

Dua for Deceased Person: Islamic Prayers for the Dead

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • DeenUp

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

Prayer beads and a glowing lantern overlooking a mosque courtyard

Quick answer

What is the Islamic dua for a deceased person?

The primary dua for a deceased person in the Janazah prayer is: Allahumma ighfir lahu warhamhu wa afihi wa'fu anhu — O Allah, forgive him, have mercy on him, grant him safety, and pardon him (Sahih Muslim 963). Adjust to laha for a woman. This is the most authenticated formula the Prophet taught for praying over the deceased.

A dimly lit lantern beside graves at dusk symbolising the Islamic dua for a deceased person

Death is the one appointment none of us can reschedule. Islam does not ask us to pretend this truth is painless — the Prophet ﷺ wept at the death of his son Ibrahim. What Islam does give us, in this moment of helplessness, is something powerful: the knowledge that our prayers still reach those who have gone before us, and that there are specific words — tested over fourteen centuries — that carry weight with Allah.

This guide covers the authenticated duas for a deceased person at every stage: from the moment of death, through the Janazah prayer, at the grave, and in the ongoing remembrance that continues long after the burial.

What Is the Dua for a Deceased Person in Islam?

The most authenticated dua for a deceased person in Islam is the supplication recited during the Janazah (funeral) prayer. The Prophet ﷺ taught it explicitly, and it is recorded in Sahih Muslim (963): Allahumma ighfir lahu warhamhu wa afihi wa'fu anhu. This translates as: O Allah, forgive him, have mercy on him, grant him safety, and pardon him. Adjust to laha for a woman. It is the most direct and verified prayer the Prophet gave for those who have passed, combining forgiveness, mercy, safety, and pardon — the four things every soul needs.

Duas Across the Four Stages of Death

Islamic tradition gives believers specific words for each moment after a death, so that no stage is faced without guidance.

StageRecommended DuaSource
Hearing of deathInna lillahi wa inna ilayhi raji-unSurah Al-Baqarah, 2:156
Janazah prayerAllahumma ighfir lahu warhamhu wa afihi wa'fu anhuSahih Muslim 963
At the graveAs-salamu alaykum ahl al-diyar min al-mu-mininSahih Muslim 975
Ongoing remembranceAllahumma ighfir li (name) warfa' darajatahuSahih Muslim 963

1. Upon Hearing of Death

When news of a death reaches you, the Quran prescribes:

إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ

Inna lillahi wa inna ilayhi raji-un

"Indeed, we belong to Allah, and indeed to Him we shall return." — (Surah Al-Baqarah, 2:156)

Allah continues this verse with a promise: "Those are the ones upon whom are blessings from their Lord and mercy. And it is those who are the guided." Reciting this is not merely a social convention — it is an act of tawheed, acknowledging that every soul is Allah's property, lent to us temporarily.

2. The Janazah Prayer Dua

The Janazah prayer (salat al-janazah) is a communal obligation — fard kifayah — and its core is the supplication for the deceased. After the four takbeers, the community stands in this dua:

اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ

Allahumma ighfir lahu warhamhu wa afihi wa'fu anhu

"O Allah, forgive him, have mercy on him, grant him well-being, and pardon him." — (Sahih Muslim 963)

The Prophet ﷺ taught an extended version when leading Janazah prayers for important individuals, adding: wa akrim nuzulahu, wa wassi' mudkhalahu, waghsilhu bil-ma-i wath-thalji wal-baradi — "Honor his reception, widen his entry point, and wash him with water, snow, and hail." This beautiful extension asks that the grave itself be made welcoming.

3. Dua at the Grave

Visiting graves is a recommended Sunnah — the Prophet ﷺ said: "Visit graves, for visiting them reminds you of the Hereafter" (Sahih Muslim 976). When arriving at a Muslim cemetery, begin with:

السَّلَامُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ

As-salamu alaykum ahl al-diyar min al-mu-minin wal-muslimin

"Peace be upon you, O people of this abode among the believers and Muslims." — (Sahih Muslim 975)

Then recite Surah Al-Fatiha and make a personal dua for the deceased. Many scholars recommend reciting Surah Al-Ikhlas three times and gifting the reward to them.

Do you feel your duas are unanswered?

Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.

Take the Dua Quiz
DeenUp app showing bite-sized Islamic lessons

Ongoing Duas for a Deceased Person

After burial, the responsibility of dua does not end. These are among the most verified ongoing supplications:

The shortened Janazah dua for daily use:

اللَّهُمَّ اغْفِرْ لَهُ وَارْفَعْ دَرَجَتَهُ

Allahumma ighfir lahu warfa' darajatahu

"O Allah, forgive him and raise his rank." — (Sahih Muslim 963)

The Quranic dua for deceased parents:

رَّبِّ ارْحَمْهُمَا كَمَا رَبَّيَانِي صَغِيرًا

Rabbi irhamhuma kama rabbayani saghira

"My Lord, have mercy on them both, as they raised me when I was small." — (Surah Al-Isra, 17:24)

The principle behind all of these is one: the dua of the living reaches the dead. Scholarly consensus affirms this across all four major schools of Islamic jurisprudence. The Quran itself — in Surah Al-Hashr (59:10) — records the believers praying: "Our Lord, forgive us and our brothers who preceded us in faith." Praying for those who came before us is a Quranic act.

Why Dua for the Deceased Matters in Islam

Islam frames death not as an ending but as a transition — from this temporary world (dunya) to the permanent one (akhirah). The deceased are not unreachable. Their connection to the living persists through three channels: ongoing charity they left behind, knowledge that continues to benefit others, and the prayers of a righteous child or community.

This is not sentiment — it is narrated in Sahih Muslim (1631) as a direct prophetic teaching. Every time you make dua for a deceased person, you are fulfilling one of the three ongoing connections the Prophet named as continuing after death. You are, in the most literal Islamic sense, still doing something for them.

For those navigating the grief of loss, our guides on dua for parents who passed away and dua for someone who passed away offer additional supplications specific to different relationships. For understanding the full Islamic perspective on death and the Hereafter, see the Islamic perspective on death.

For deeper reading on the Islamic understanding of death and its rites, Yaqeen Institute's research offers scholarly context on the afterlife in Islam. The authenticated hadith collections on this topic are available through Sunnah.com, where Sahih Muslim 963 — the core Janazah dua — can be read in full context.

Deenback's guide on caring for sick parents in Islam addresses the related questions that arise when a loved one is ill and approaching the end of life, and DemiManifest's reflection on faith through hardship explores the broader spiritual journey of grief and trust in Allah.

How to Make Dua for the Deceased a Lasting Habit

The best practice is simple: after every salah, add one short dua for your deceased loved ones before making your personal supplications. Many Muslims recite Allahumma ighfir lahu warhamhu for a specific person after the closing salam of each prayer. Done consistently, this takes under ten seconds but represents an act of ongoing charity on behalf of the deceased — one the Prophet promised would reach them.

Consider also noting the names of deceased loved ones and mentioning them by name in dua. The Prophet prayed by name for specific companions who had passed. Personalizing the supplication deepens it for you and, according to scholars, adds specificity that may carry particular weight.

Do you feel your duas are unanswered?

Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.

Take the Dua Quiz
DeenUp app showing bite-sized Islamic lessons

Death is not the end of our relationship with those we love. The dua for a deceased person is one of the most beautiful teachings Islam holds — it says that love, prayer, and connection outlast every worldly limitation. Keep making dua. It reaches them.

Frequently Asked Questions

What is the Islamic dua for a deceased person?

The primary dua for a deceased person in the Janazah prayer is: Allahumma ighfir lahu warhamhu wa afihi wa'fu anhu — O Allah, forgive him, have mercy on him, grant him safety, and pardon him (Sahih Muslim 963). Adjust to laha for a woman. This is the most authenticated formula the Prophet taught for praying over the deceased.

Does dua benefit a deceased person in Islam?

Yes. Scholarly consensus holds that dua reaches and benefits the deceased. The Prophet said: 'When a person dies, their deeds end except three — ongoing charity, beneficial knowledge, or a righteous child who prays for them' (Sahih Muslim 1631). Supplication is among the most powerful gifts the living can offer a person who has passed.

What do you say when visiting a grave in Islam?

When visiting a Muslim grave, recite: As-salamu alaykum ahl al-diyar min al-mu-minin wal-muslimin — Peace be upon you, O people of this abode among the believers and Muslims (Sahih Muslim 975). Then recite Al-Fatiha, Al-Ikhlas, and a personal dua for the deceased. The Prophet regularly visited graves and prayed for those buried there.

What is the dua to say when hearing of a death?

Upon hearing of a death, say: Inna lillahi wa inna ilayhi raji-un — Verily, we belong to Allah, and to Him we shall return (Surah Al-Baqarah, 2:156). The Quran says those who respond this way receive salawat and mercy from their Lord. It is both a statement of faith and an acknowledgment that every soul belongs ultimately to Allah.

How long should I continue making dua for a deceased person?

There is no time limit for making dua for the deceased. Scholars encourage including deceased parents and loved ones in daily supplications indefinitely. Many Muslims add a brief dua for the deceased after every salah. The Prophet regularly prayed for believers who had passed before him, setting a lifelong precedent.

Can I give sadaqah on behalf of a deceased person?

Yes. Giving sadaqah on behalf of the deceased is authentically established. When a man asked the Prophet if giving in charity for his deceased mother would benefit her, the Prophet confirmed it would (Sahih al-Bukhari 2756). Scholars recommend sadaqah jariyah — ongoing charity like a water well, a Quran, or funding for education — for maximum continuing reward.

What surahs are recommended to recite for the deceased?

Scholars recommend reciting Surah Al-Fatiha, Surah Al-Ikhlas (three times), and Surah Yasin for the deceased, then making dua for them afterward. Surah Yasin is often recited by the family in the days following a death. These recitations are paired with the intention of gifting the reward to the deceased's soul.