Prayer
Published on

Prayer When Someone Passes Away in Islam

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

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

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

A prayer rug facing a softly lit mosque mihrab
Islamic prayer when someone passes away — dua for the deceased and inna lillahi meaning

A phone call comes in. Someone you knew — maybe someone close, maybe someone in the community — has died. In that sudden moment, what does a Muslim say? What is the right prayer? What does Islam prescribe for this pause between the news and the grief?

The answer is not complicated, but it is profound. And knowing it before you need it means you say it with understanding, not just instinct.

What Is the Islamic Prayer When Someone Passes Away?

When a Muslim receives news of a death, the prescribed response is the phrase: Inna lillahi wa inna ilayhi raji'un — إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ — "Indeed, we belong to Allah, and indeed to Him we shall return." This comes directly from Surah Al-Baqarah (2:156), where Allah describes the patient believers as those who say this phrase when calamity strikes them. It is simultaneously a dua, a declaration of faith, and an act of patience.

The Quranic Foundation

"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient — those who, when disaster strikes them, say: 'Indeed, we belong to Allah, and indeed to Him we shall return.'" — (Surah Al-Baqarah, 2:155-156, quran.com)

The verse continues with a promise: Allah sends salawat (blessings) and mercy upon those who respond to hardship this way, and they are described as al-muhtadun — the rightly guided.

This phrase, known as istirja' (the declaration of return), is not merely a cultural expression. It is a theological statement: everything belongs to Allah — including this soul that just left — and all things return to Him. Saying it at the moment of grief is an act of tawakkul (توَكُّل), entrusting the departed to Allah's care.

The Duas for the Deceased

OccasionDuaSource
Hearing news of deathInna lillahi wa inna ilayhi raji'unQuran 2:156
Janazah prayer (Dua 1)Allahummaghfir lahu warhamhu wa 'afihi wa 'fu 'anhuSahih Muslim 963
Janazah prayer (Dua 2)Allahummaghfir li-ayyina wa mayyitina...Abu Dawud 3201
After burialAllahummaghfir lahu, Allahumma thabbithuAbu Dawud 3221
General dua for deceasedRabbighfir li wa liwalidayya...Quran 14:41

The primary dua at the janazah prayer:

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

Allahummaghfir lahu warhamhu wa 'afihi wa 'fu 'anhu

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

For a female deceased, change lahu (for him) to laha (for her). For multiple deceased, use lahum (for them).

The comprehensive dua covering all deceased:

اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَشَاهِدِنَا وَغَائِبِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنثَانَا

Allahummaghfir li-ayyina wa mayyitina wa shahidina wa gha'ibina wa saghirina wa kabirina wa dhakarina 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." — (Sunan Abu Dawud 3201)

This dua covers every member of the community — the ones we know have passed and the ones we have not yet heard about.

The Sunnah of Ta'ziyah (Offering Condolences)

Offering condolences to a bereaved family is a confirmed Sunnah that the Prophet ﷺ encouraged strongly. He said: "Whoever offers condolences to one afflicted with a loss, Allah will clothe them on the Day of Judgement with garments of honor." (Ibn Majah 1601)

The practice of ta'ziyah includes:

  • Visiting the family within three days of the death
  • Reciting istirja' together — saying "Inna lillahi" with them acknowledges the shared grief and reinforces patience
  • Making specific dua for the deceased by name: "Allahummaghfir li-[name]..."
  • Offering practical help — food, childcare, or assistance with arrangements
  • Not prolonging the visit — brief, sincere presence is more beneficial than a long stay

What to avoid: excessive wailing, chest-beating, and tearing of clothes are explicitly prohibited in the hadith. The Prophet ﷺ dissociated himself from such expressions of grief (Sahih al-Bukhari 1294). Healthy sadness and crying are natural; uncontrolled grief that transgresses patience is not encouraged.

Your personal 28-Day Deen Plan

Learn your deen in 28 days, 5 minutes a day

The essentials of salah, fiqh and faith, step by step from authentic sources. Finish all 28 days and earn a verifiable Certificate of Completion.

Take the free quiz

Answer a few questions and get your personal plan.

Sample DeenUp Certificate of Completion

Why This Moment Matters

The practice of saying "Inna lillahi wa inna ilayhi raji'un" is inseparable from the Islamic understanding of the soul. The Quran teaches:

"Say: 'The Angel of Death will take you, the one entrusted with you, and then to your Lord you will be returned.'" — (Surah As-Sajdah, 32:11)

And more directly:

"Every soul will taste death..." — (Surah Al-Imran, 3:185)

The Islamic response to death is not denial. It is not a performance of strength. It is a clear-eyed acknowledgment: this person belonged to Allah. Allah lent them to us. Now He has called them back. The dua is what makes this acknowledgment active — you do not just think this, you say it, and in saying it you submit.

This is what the scholars call sabr jamil (صَبْرٌ جَمِيلٌ) — beautiful patience. Not absence of grief, but grief shaped by tawakkul. For more on the Islamic perspective on hardship and patience, trusting Allah through hardship offers a helpful framework.

Connecting This to Daily Islamic Practice

Death is not a topic most people want to think about daily. But the Prophet ﷺ advised: "Remember often the destroyer of pleasures" — meaning death — as a practice that sharpens the quality of one's worship. (Sunan Ibn Majah 4258)

The dua for the deceased is also an act of ongoing sadaqah jariyah (continuous charity) for the one who died. Every time you say "Allahummaghfir lahu..." for someone who has passed, you are sending them a gift. The Prophet ﷺ confirmed that the righteous children who make dua for their deceased parents after death benefit those parents directly (Sahih Muslim 1631).

For the full steps of the Islamic funeral — washing (ghusl), shrouding (kafan), and prayer (janazah) — see how to pray janazah and Islamic funeral rituals. For the specific dua for someone who has passed away, the full text and usage guide is at dua for someone who passed away. And for what to say at the moment of news in Arabic, with correct pronunciation, see when someone dies what to say in Arabic.

The dua for the deceased and remembering death in Islam are both worth reading for their practical guidance on making these moments of loss also moments of worship.

The Mercy of Allah for the Deceased and the Bereaved

One of the most comforting dimensions of Islamic theology is Surah Az-Zumar 39:53:

"Say: 'O My servants who have transgressed against themselves — do not despair of the mercy of Allah. Indeed, Allah forgives all sins. Indeed, it is He who is the Forgiving, the Merciful.'" — (quran.com/39:53)

This verse is not only for the living. The scholars note that making dua for the deceased — asking Allah to apply this mercy to them — is among the most meaningful acts the living can do. Allah's forgiveness is vast. The dua is the vessel we use to bring it to those we have lost.

Say it today for someone you have lost. Say it the next time you hear news of a death. The words are brief. The impact — for the deceased and for your own heart — is not.

Your personal 28-Day Deen Plan

Learn your deen in 28 days, 5 minutes a day

The essentials of salah, fiqh and faith, step by step from authentic sources. Finish all 28 days and earn a verifiable Certificate of Completion.

Take the free quiz

Answer a few questions and get your personal plan.

Sample DeenUp Certificate of Completion

Frequently Asked Questions

What do you say in Islam when someone passes away?

When you receive news of a death, say: Inna lillahi wa inna ilayhi rajiun — Indeed, we belong to Allah and to Him we shall return. This phrase is from Surah Al-Baqarah (2:156) and is both a statement of faith and a dua. It acknowledges that all souls return to Allah.

What is the dua for someone who has just passed away?

The dua for the deceased is: Allahummaghfir lahu warhamhu wa 'afihi wa 'fu 'anhu — O Allah, forgive them, have mercy on them, grant them well-being, and pardon them. This dua appears in Sahih Muslim 963 and is recited during the janazah (funeral) prayer for the deceased.

Can I say 'Inna lillahi' for calamities other than death?

Yes. The Quran introduces this phrase in the context of all hardship — 'those who, when disaster strikes them, say: Indeed, we belong to Allah...' (2:155-156). Scholars confirm it is appropriate for any loss or calamity: illness, financial hardship, or personal grief — not only at news of death.

How do I offer condolences to a Muslim family after a death?

Offering condolences (ta'ziyah) is a Sunnah obligation lasting three days. Visit the family, say 'Inna lillahi wa inna ilayhi rajiun' together with them, make dua for the deceased, and offer practical help. Avoid excessive wailing or eulogizing that the Prophet ﷺ prohibited.

Is there a dua for the soul of someone who has died?

Yes. After the janazah prayer, and in personal dua at any time, say: Allahummaghfir li-ayyina wa mayyitina wa shahidina wa ghaibina — O Allah, forgive our living and our dead, those present and those absent. This comprehensive dua is narrated in Abu Dawud 3201 and covers all the deceased.

What is the Islamic belief about the soul after death?

In Islamic belief, the soul (ruh) leaves the body at death and enters the barzakh — the intermediate realm between death and resurrection. Allah receives every soul (Quran 39:42), and the righteous soul is at peace in this period. Physical death is not the end, but a return to the One who created us.

How long is the Islamic mourning period?

The general mourning period in Islam is three days for family and community members. A widow observes iddah — a mourning and waiting period of four months and ten days (Surah Al-Baqarah, 2:234). During mourning, excessive wailing and neglecting prayer are prohibited; patience and dua are encouraged.