Published on

Dua When Someone Dies: What to Say and Do When Loss Strikes

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

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

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

Dua when someone dies — what to say and do in Islam when loss strikes

Someone you know has died. Maybe you just heard the news. Maybe you received a phone call. Maybe you are standing in a hospital corridor or sitting in your car in a parking lot, trying to process what just happened.

You want to do or say the right thing — for the person who died, for the family, for yourself. And you are not sure where to start.

Islam does not leave you searching for words in this moment. The Prophet ﷺ gave specific, tested language for exactly these situations — language that honors the dead, comforts the living, and keeps the heart anchored to truth even in shock.

The First Dua — Said the Moment You Hear of a Death

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

Inna lillahi wa inna ilayhi raji'un

"Indeed we belong to Allah, and indeed to Him we shall return."

— (Quran, Surah Al-Baqarah, 2:156)

This is the Quranic response to loss. It is said immediately — in the first breath after hearing. Allah describes in the next verse those who say it: "Those are the ones upon whom are blessings from their Lord and mercy. And it is those who are rightly guided." (2:157)

The dua is a declaration of ownership. This person belonged to Allah. They have returned to Allah. Our grief is real — but the frame of ownership is also real. They were always on loan.

The Full Response the Prophet Taught

اللَّهُمَّ أْجُرْنِي فِي مُصِيبَتِي وَأَخْلِفْ لِي خَيْرًا مِنْهَا

Allahumma ajurni fi musibati wa akhlif li khayran minha

"O Allah, reward me for this calamity and replace it for me with something better."

— (Sahih Muslim 918)

The Prophet ﷺ taught this continuation: say Inna lillahi... and then say this. The promise attached: Umm Salamah (RA) reported using this dua when her first husband died and then wondered who could possibly be better than him — and then married the Prophet ﷺ. The replacement is real. It may not look like what you imagine. But it is real.

The Story Behind These Duas

The verse of Inna lillahi (2:156-157) came down as part of a larger teaching about patience and what it produces. Allah in the same passage promises that those who patiently receive calamity with this declaration receive blessings, mercy, and guidance.

The Companions used it consistently. When they heard of any death — near or far — the first words were these. It was not performative. It was orienting: pulling the shocked heart back to the framework that makes sense of what just happened.

Umm Salamah's narration in Sahih Muslim captures why the continuation dua matters. When her husband Abu Salamah died, she was devastated. The Prophet ﷺ taught her to say Allahumma ajurni fi musibati wa akhlif li khayran minha. She reported initially thinking: what could be better than Abu Salamah? And then she found out. Her willingness to say the dua despite not being able to imagine its fulfillment is itself a model for how to use it.

How to Show Up With Dua When Someone Dies

Whether the loss is yours or someone else's, there are specific dua responsibilities.

For the deceased, say this dua:

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

Allahumma aghfir lahu warhamhu wa 'afihi wa'fu 'anhu

"O Allah, forgive him, have mercy on him, grant him wellbeing, and pardon him."

— (Sahih Muslim 963)

This is said for a male. For a female: Allahumma aghfir laha warhamha wa 'afiha wa'fu 'anha. For multiple people: replace the singular pronouns with plural (lahum, 'anhum).

Say this for anyone who has died — family, friends, community members. You do not need to have known them well. The dua is an act of solidarity across death.

For the family, when offering condolences:

The Prophet ﷺ said to the family of the deceased: "Inna lillahi ma akhadha, wa lahu ma a'ta, wa kullun 'indahu bi ajalin musamma — Indeed to Allah belongs what He took, and to Him belongs what He gave, and everything with Him has an appointed time. So be patient and seek reward from Allah." (Sahih Bukhari 1284)

For yourself, when the grief is overwhelming. The dua for relief from grief contains additional prophetic supplications for processing deep loss. When the death raises anxiety about your own mortality, the dua for good death channels that into productive preparation. When the loss feels unbearable, the dua for patience provides the Islamic framework for what you are going through.

Stay Connected to Allah Through the Hardest Moments

DeenBack helps you maintain your daily prayer, dua, and dhikr practice even through grief — so the habits that sustain you are already built when you need them most.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

What to Do Beyond Dua

The Islamic response to death is not only dua. It is also action.

Visit the family. The Prophet ﷺ said: "Whoever attends a funeral until the prayer is offered will have a qirat of reward, and whoever stays until the burial will have two qirats." (Sahih Bukhari 1325). Physical presence matters. Do not only send a message.

Bring food. The Prophet ﷺ instructed: "Prepare food for the family of Ja'far, for they are preoccupied with what has happened to them." (Tirmidhi 998). The family should not have to cook in the days of grief. Bringing food is a Sunnah act of care.

Make dua at the grave. When attending burial, the Prophet ﷺ said to make dua for the deceased after burial because: "They are now being asked, and they need your strengthening dua." (Abu Dawud 3221). The dua at the grave is not just tradition — it is described as a form of support.

Make dua for them regularly after death. The Prophet ﷺ said: "When a person dies, their deeds end except for three: ongoing charity, knowledge that benefits others, or a righteous child who prays for them." (Sahih Muslim 1631). If the deceased leaves behind children who continue to make dua for them, those duas benefit the deceased in their grave.

Common Questions

Is it permissible to cry when someone dies?

Yes — absolutely. The Prophet ﷺ wept when his son Ibrahim died, saying: "The eye weeps, the heart grieves, and we say only what pleases our Lord. O Ibrahim, we are grieved by your departure." (Sahih Bukhari 1303). Crying is not against patience (sabr). What Islam discourages is wailing, tearing clothes, and saying words of despair about Allah's decree — not the natural tears of grief.

Can I make dua for a non-Muslim who has died?

The majority position among scholars is that you cannot make dua for forgiveness for a non-Muslim who died without Islam, based on Quran 9:113. However, you can make dua for living non-Muslims to be guided. For deceased non-Muslims, you can express grief over their death without asking for their forgiveness.

What if I did not say the dua immediately when I heard the news?

There is no deadline on saying Inna lillahi wa inna ilayhi raji'un. Say it now. The dua for the deceased can also be said at any time after death, not only at the moment of dying. Allah does not require precision of timing — He requires sincerity.

The Words That Hold You

Loss destabilizes. It removes something you assumed would continue, and the absence reshapes the landscape of your life.

What Inna lillahi wa inna ilayhi raji'un does is not remove the grief. It does not make the loss smaller. What it does is give you a framework to grieve inside — one where the loss is real but not ultimate, where the ending is painful but not the final word.

They went back to Allah. You will go back to Allah. In the meantime, you are here, saying the words that the Prophet ﷺ taught, making the dua that helps them even now, and staying anchored to the truth that makes sense of everything.

Build the Habits That Sustain You When Loss Arrives

DeenBack helps you maintain consistent prayer, dua, and dhikr — the daily spiritual anchors that carry you through grief without drifting from Allah.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

What do you say in Islam when someone dies?

The primary Quranic response to death is Inna lillahi wa inna ilayhi raji'un — Indeed we belong to Allah and indeed to Him we shall return (Quran 2:156). This is said immediately upon hearing of a death. The Prophet ﷺ also taught the dua of condolence: Inna lillahi ma akhadha wa lahu ma a'ta — Indeed to Allah belongs what He took and what He gave.

What is the dua for someone who has just died?

Allahumma aghfir lahu warhamhu wa 'afihi wa'fu 'anhu — O Allah, forgive him, have mercy on him, grant him wellbeing, and pardon him (Sahih Muslim 963). This comprehensive dua covers all the mercy the deceased needs: forgiveness, mercy, wellbeing, and pardon. It is said for the deceased at any time after death.

What should I say to comfort someone who has lost a loved one?

The Prophet ﷺ taught: Inna lillahi ma akhadha wa lahu ma a'ta wa kullun 'indahu bi ajalin musamma, faltasbir wal tahtasib — Indeed to Allah belongs what He took, and to Him belongs what He gave, and everything with Him has an appointed time. So be patient and seek reward from Allah (Sahih Bukhari 1284). This is the full condolence taught by the Prophet ﷺ himself.

How long should mourning last in Islam?

The Prophet ﷺ said: 'It is not permitted to mourn for more than three days except for a wife, who mourns for four months and ten days.' (Sahih Bukhari 1281). This does not mean grief must end at three days — it means public mourning practices (wearing black, withdrawing from all social activity) should not extend beyond this. Private grief and missing the deceased continue naturally.