All posts
Emotions 14 November 2026 · 7 min read

Dua for the Deceased: What to Say When Someone Passes Away

What to say when someone dies: Inna lillahi, the dua of the funeral prayer, duas at the grave and for the years after, with Arabic, meaning and sources.

When someone passes away, the first words the Sunnah gives you are Inna lillahi wa inna ilayhi raji’un, “To Allah we belong and to Him we return” (Qur’an 2:156), followed by a dua for yourself in the loss (Sahih Muslim 918). After that come the duas for the person who has died: at the funeral prayer, at the grave, and for as long as you remember them.

This guide gives each one with Arabic, transliteration, meaning and source.

1. When you hear the news

إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ اللَّهُمَّ أْجُرْنِي فِي مُصِيبَتِي وَأَخْلِفْ لِي خَيْرًا مِنْهَا Inna lillahi wa inna ilayhi raji’un. Allahumma’jurni fi musibati wa akhlif li khayran minha.

“To Allah we belong and to Him we return. O Allah, reward me in my affliction and replace it for me with something better.” — Sahih Muslim 918

Umm Salamah (رضي الله عنها) heard the Prophet ﷺ say that any Muslim struck by a loss who says this will be given something better in its place. When her husband Abu Salamah died she said it, wondering who could possibly be better than him. Allah then gave her the Messenger of Allah ﷺ as a husband.

2. The dua of the funeral prayer

اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الأَبْيَضَ مِنَ الدَّنَسِ وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ وَأَهْلاً خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأَدْخِلْهُ الْجَنَّةَ وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ أَوْ مِنْ عَذَابِ النَّارِ Allahumma-ghfir lahu warhamhu, wa ‘afihi wa’fu ‘anhu, wa akrim nuzulahu, wa wassi’ mudkhalahu, waghsilhu bil-ma’i wath-thalji wal-barad, wa naqqihi minal-khataya kama naqqaytath-thawbal-abyada minad-danas, wa abdilhu daran khayran min darihi, wa ahlan khayran min ahlihi, wa zawjan khayran min zawjihi, wa adkhilhul-jannah, wa a’idh-hu min ‘adhabil-qabri aw min ‘adhabin-nar.

“O Allah, forgive him and have mercy on him. Grant him well-being and pardon him. Honour his arrival and make his entrance wide. Wash him with water, snow and hail, and cleanse him of sins as a white garment is cleansed of dirt. Give him a home better than his home, a family better than his family, and a spouse better than his spouse. Admit him to Paradise and protect him from the punishment of the grave, or from the punishment of the Fire.” — Sahih Muslim 963

‘Awf ibn Malik (رضي الله عنه) memorised this from the Prophet ﷺ at a funeral and said he wished he had been the one who died, so that the dua would have been for him. The narrator was unsure of the final phrase, which is why it reads “or”. For a woman the pronouns change: Allahumma-ghfir laha warhamha, and so on.

3. For the one who died and everyone left behind

اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنْثَانَا وَشَاهِدِنَا وَغَائِبِنَا اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الإِيمَانِ وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الإِسْلاَمِ اللَّهُمَّ لاَ تَحْرِمْنَا أَجْرَهُ وَلاَ تُضِلَّنَا بَعْدَهُ Allahumma-ghfir lihayyina wa mayyitina, wa saghirina wa kabirina, wa dhakarina wa unthana, wa shahidina wa gha’ibina. Allahumma man ahyaytahu minna fa ahyihi ‘alal-iman, wa man tawaffaytahu minna fatawaffahu ‘alal-islam. Allahumma la tahrimna ajrahu wa la tudillana ba’dah.

“O Allah, forgive our living and our dead, our young and our old, our men and our women, those of us present and those absent. O Allah, whomever of us You keep alive, keep him alive upon faith, and whomever of us You take, take him upon Islam. O Allah, do not deprive us of his reward, and do not let us go astray after him.” — Sunan Abi Dawud 3201

4. At the grave, once the burial is done

When the Prophet ﷺ finished burying someone, he would stand by the grave and say: “Seek forgiveness for your brother and ask that he be made firm, for he is now being questioned” (Sunan Abi Dawud 3221, graded sahih by al-Albani).

No fixed wording is reported. Stay a few minutes and ask, in your own words, for Allah to forgive them and keep them steadfast.

5. When you visit the grave

السَّلاَمُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ وَإِنَّا إِنْ شَاءَ اللَّهُ لَلَاحِقُونَ أَسْأَلُ اللَّهَ لَنَا وَلَكُمْ الْعَافِيَةَ As-salamu ‘alaykum ahlad-diyari minal-mu’minina wal-muslimin, wa inna in sha Allahu lalahiqun, as’alullaha lana wa lakumul-‘afiyah.

“Peace be upon you, people of these dwellings, believers and Muslims. We will, if Allah wills, be joining you. I ask Allah for well-being for us and for you.” — Sahih Muslim 975

6. For years afterwards

رَبَّنَا اغْفِرْ لَنَا وَلِإِخْوَانِنَا الَّذِينَ سَبَقُونَا بِالْإِيمَانِ وَلَا تَجْعَلْ فِي قُلُوبِنَا غِلًّا لِلَّذِينَ آمَنُوا رَبَّنَا إِنَّكَ رَءُوفٌ رَحِيمٌ Rabbana-ghfir lana wa li-ikhwaninal-ladhina sabaquna bil-iman, wa la taj’al fi qulubina ghillan lil-ladhina amanu, Rabbana innaka Ra’ufur-Rahim.

“Our Lord, forgive us and our brothers who preceded us in faith, and put no resentment in our hearts toward those who believe. Our Lord, You are Kind and Merciful.” — Qur’an 59:10

The Qur’an praises those who pray for the believers who went before them. And the Prophet ﷺ said that when a person dies their deeds end except for three: ongoing charity, knowledge that benefits, and a righteous child who makes dua for them (Sahih Muslim 1631).

Your dua is one of the few things still reaching them. For a mother or father specifically, see the duas for parents.

What else reaches the deceased

Charity given on their behalf. A man told the Prophet ﷺ that his mother had died suddenly and asked whether she would be rewarded if he gave charity for her. He ﷺ said yes (Sahih al-Bukhari 1388).

Grief is not a lack of faith

When his infant son Ibrahim was dying, the Prophet ﷺ wept and said: “The eyes shed tears and the heart grieves, and we say only what pleases our Lord. We are grieved by your parting, O Ibrahim” (Sahih al-Bukhari 1303).

Tears and dua belong together. If the words will not come, start with what the prophets said.

Keeping their duas going

The first weeks are full of people making dua. Months later it is often only you. Two things help:

  • A fixed moment. One of the duas above after a particular prayer, every day.
  • A place for it. A collection with their name on it, so remembering them has somewhere to live. A family can also keep one together: Dua Diary’s shared diaries gather everyone’s duas for a person through a single link. Joining and adding are free. Creating a shared diary is part of Premium.

FAQ

What do you say when someone dies in Islam? Inna lillahi wa inna ilayhi raji’un: To Allah we belong and to Him we return (Qur’an 2:156). The Prophet ﷺ taught adding: Allahumma’jurni fi musibati wa akhlif li khayran minha, O Allah, reward me in my affliction and replace it for me with something better (Sahih Muslim 918).

What is the dua for the deceased? The dua the Prophet ﷺ made at the funeral prayer: Allahumma-ghfir lahu warhamhu, wa ‘afihi wa’fu ‘anhu, O Allah, forgive him and have mercy on him, grant him well-being and pardon him, to the end of the dua (Sahih Muslim 963).

Does dua benefit someone who has died? Yes. The Prophet ﷺ said a person’s deeds end at death except three, one of which is a righteous child who makes dua for them (Sahih Muslim 1631), and he told people at the graveside to seek forgiveness for the one just buried (Sunan Abi Dawud 3221).

Can I make dua for the deceased in my own words? Yes. Outside the funeral prayer you can ask Allah to forgive them and have mercy on them in any language and at any time.

A calm home for your duas.

Write, save, and return to your duas every day with Dua Diary — free on iPhone, with Android in development.

Download on the App Store

Follow Dua Diary on Instagram Facebook YouTube