Skip to content

    New Muslims

    Dua for the Deceased: What to Say When Someone Dies

    What to say when you hear of a death, the dua for a Muslim who has passed away, what to say at the grave and to the grieving family, and what you can do when a non-Muslim relative dies.

    Al Hidayah Institute8 min read

    White daisies in a small glass vase, with one lying beside it
    On this page

    When you hear that someone has died, say Inna lillahi wa inna ilayhi raji'un: "We belong to Allah, and to Him we will return." For a Muslim who has passed away, the dua is Allahummaghfir lahu warhamhu, "O Allah, forgive him and have mercy on him" (laha and warhamha for a woman), which begins the longer dua the Prophet ﷺ made at a funeral (Sahih Muslim 963). To the family, you can say what he said: "To Allah belongs what He took, and to Him belongs what He gave."

    We're sorry if you're reading this because you've lost someone. Below are the authentic words for each moment: hearing the news, praying for the person, comforting the family, after the burial, and visiting the grave. There's also a section for reverts on what you can say and do when a non-Muslim parent or relative dies, because that's a question many of us face.

    When you hear the news

    The first line is from the Quran, where Allah describes the people who say it when disaster strikes:

    Quran, Al-Baqarah 2:155-157

    وَلَنَبْلُوَنَّكُم بِشَىْءٍ مِّنَ ٱلْخَوْفِ وَٱلْجُوعِ وَنَقْصٍ مِّنَ ٱلْأَمْوَٰلِ وَٱلْأَنفُسِ وَٱلثَّمَرَٰتِۗ وَبَشِّرِ ٱلصَّـٰبِرِينَ ١٥٥

    155And 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,

    ٱلَّذِينَ إِذَآ أَصَـٰبَتْهُم مُّصِيبَةٌ قَالُوٓا۟ إِنَّا لِلَّهِ وَإِنَّآ إِلَيْهِ رَٰجِعُونَ ١٥٦

    156Who, when disaster strikes them, say, "Indeed we belong to Allāh, and indeed to Him we will return."

    أُو۟لَـٰٓئِكَ عَلَيْهِمْ صَلَوَٰتٌ مِّن رَّبِّهِمْ وَرَحْمَةٌۖ وَأُو۟لَـٰٓئِكَ هُمُ ٱلْمُهْتَدُونَ ١٥٧

    157Those are the ones upon whom are blessings from their Lord and mercy. And it is those who are the [rightly] guided.

    Translation: Saheeh International. Recitation: Mishary al-Afasy.

    The second line is what the Prophet ﷺ added. Umm Salamah told the story behind it:

    If any Muslim who suffers some calamity says, what Allah has commanded him," We belong to Allah and to Him shall we return; O Allah, reward me for my affliction and give me something better than it in exchange for it," Allah will give him something better than it in exchange. When Abu Salama died she said: What Muslim is better than Abu Salama

    Sahih Muslim 918aSahih

    Narrated by Umm Salamah. Shortened.

    She couldn't imagine anyone better than her husband. She said the words anyway, and Allah gave her the Prophet ﷺ himself as her next husband. The dua isn't a denial of grief. It's said in the middle of it.

    The dua for a Muslim who has died

    'Awf ibn Malik heard the Prophet ﷺ make this dua at a funeral prayer and memorized it:

    Admit him to the Garden, and protect him from the torment of the grave and the torment of the Fire." ('Auf bin Malik) said: I earnestly desired that I were this dead body.

    Sahih Muslim 963aSahih

    Narrated by 'Awf ibn Malik. Shortened; the full dua is above.

    'Awf wished he'd been the one being prayed for. That's how good this dua is. It's long, so don't feel you must learn it all at once. The opening, Allahummaghfir lahu warhamhu, is a complete dua by itself. For a woman, Arabic speakers change -hu to -ha throughout (Allahummaghfir laha warhamha). If that's too much to manage while grieving, saying it in English is fine.

    You can also use the person's name, as the Prophet ﷺ did when Abu Salamah died:

    O Allah, forgive Abu Salama, raise his degree among those who are rightly guided, grant him a successor in his descendants who remain. Forgive us and him, O Lord of the Universe, and make his grave spacious, and grant him light in it.

    Sahih Muslim 920aSahih

    Narrated by Umm Salamah. Shortened.

    In the same hadith he told the family, "Do not supplicate for yourselves anything but good, for angels say Amen to what you say." In the first hours after a death, people say things in grief they don't mean. Saying only good is part of the sunnah.

    What to say to the family

    When the Prophet's daughter sent for him because her child was dying, he sent back this message:

    Whatever Allah takes is for Him and whatever He gives, is for Him, and everything with Him has a limited fixed term (in this world) and so she should be patient and hope for Allah's reward.

    Sahih al-Bukhari 1284Sahih

    Narrated by Usamah ibn Zayd. Shortened.

    Later in the same hadith the child was brought to him and his eyes filled with tears. When someone asked about it, he said, "It is mercy which Allah has lodged in the hearts of His slaves." Crying isn't a lack of faith. What the sunnah asks is that we don't wail, tear clothes or say things against Allah's decree.

    Beyond those words, the most comforting things are practical: bring food, help with arrangements, sit with them. You don't need a speech.

    After the burial

    Whenever the Prophet (ﷺ) became free from burying the dead, he used to stay at him (i.e. his grave) and say: Seek forgiveness for your brother, and beg steadfastness for him, for he will be questioned now.

    Sunan Abi Dawud 3221Sahih

    Narrated by 'Uthman ibn 'Affan. Graded sahih (al-Albani).

    So at the graveside, ask Allah to forgive them and to keep them firm, in any words. A simple one: Allahummaghfir lahu, Allahumma thabbit-hu, "O Allah, forgive him, O Allah, make him firm."

    Your dua keeps reaching them long after:

    When a man dies, his acts come to an end, but three, recurring charity, or knowledge (by which people) benefit, or a pious child, who prays for him (for the deceased).

    Sahih Muslim 1631Sahih

    Narrated by Abu Hurayrah.

    If it's your Muslim parent who has died, your dua is one of the three things that still benefit them. Our page on dua for parents has the Quranic duas for them.

    When visiting the grave

    When a non-Muslim relative dies

    Many reverts lose a parent, grandparent or friend who wasn't Muslim, and the grief is the same as anyone's. Here's what's clear from the sources, said as plainly and kindly as we can.

    You can grieve, cry and miss them. The Prophet ﷺ visited his own mother's grave years after her death, and he wept until the people around him wept too:

    I sought permission from my Lord to beg forgiveness for her but it was not granted to me, and I sought permission to visit her grave and it was granted to me so visit the graves, for that makes you mindful of death.

    Sahih Muslim 976bSahih

    Narrated by Abu Hurayrah. Shortened.

    Asking forgiveness for them after death isn't done. That's what this hadith shows, and the Quran says it directly:

    Quran, At-Tawbah 9:113

    مَا كَانَ لِلنَّبِىِّ وَٱلَّذِينَ ءَامَنُوٓا۟ أَن يَسْتَغْفِرُوا۟ لِلْمُشْرِكِينَ وَلَوْ كَانُوٓا۟ أُو۟لِى قُرْبَىٰ مِنۢ بَعْدِ مَا تَبَيَّنَ لَهُمْ أَنَّهُمْ أَصْحَـٰبُ ٱلْجَحِيمِ ١١٣

    It is not for the Prophet and those who have believed to ask forgiveness for the polytheists, even if they were relatives, after it has become clear to them that they are companions of Hellfire.

    Translation: Saheeh International. Recitation: Mishary al-Afasy.

    Scholars understand this to mean that once someone has died outside Islam, a Muslim doesn't make the funeral dua or ask forgiveness for them. That's hard to read when it's your own mother or father. The next verse (9:114) speaks of Ibrahim, who asked forgiveness for his father while his father was alive because he'd promised to, and it calls Ibrahim compassionate and patient. Loving and missing a parent isn't something you're asked to stop. Judgement of any person belongs to Allah alone, and He is perfectly just and more merciful than we are.

    What you can do: be there for your family, help with the arrangements, speak well of the person, and comfort them in words they'll understand: "I'm so sorry," "She was a wonderful mother," "I'm here for you." Allah doesn't forbid kindness to those who haven't fought us over religion (60:8). You can also make dua for the living: for your family's comfort, patience and guidance.

    If you'd like to learn these duas properly, our free course covers the duas for life's hardest moments and how to ask Allah in your own words, alongside our guide on how to make dua and the duas page.

    Take the free How to Ask Allah course

    Questions people ask

    What do you say when someone dies in Islam?

    Inna lillahi wa inna ilayhi raji'un, "We belong to Allah, and to Him we will return" (Quran 2:156), with Allahumma'jurni fi musibati wa akhlif li khayran minha (Sahih Muslim 918).

    What is the dua for a deceased Muslim?

    Allahummaghfir lahu warhamhu, wa 'afihi wa'fu 'anhu... from Sahih Muslim 963. For a woman, use laha and warhamha. Even the opening words alone are a complete dua.

    What do you say to someone whose relative has died?

    The Prophet ﷺ said: "To Allah belongs what He took, and to Him belongs what He gave, and everything with Him has an appointed time" (Sahih al-Bukhari 1284). Then be patient and hope for reward.

    What is the dua for visiting the grave?

    As-salamu 'alaykum ahlad-diyari minal-mu'minina wal-muslimin, wa inna in sha' Allahu la-lahiqun. As'alullaha lana wa lakumul-'afiyah (Sahih Muslim 975).

    Can I make dua for my non-Muslim parent who died?

    Scholars hold that asking forgiveness for someone who died outside Islam isn't allowed (Quran 9:113, Sahih Muslim 976). You can grieve, speak well of them, support your family, and make dua for the living.

    Does dua benefit the dead?

    Yes. A righteous child's dua is one of three things that keep benefiting a Muslim after death (Sahih Muslim 1631), and the Prophet ﷺ told people to ask forgiveness for the deceased after burial (Sunan Abi Dawud 3221).

    Written by

    Al Hidayah Institute

    The teaching team at Al Hidayah Institute.

    Discussion

    Questions and reflections are welcome. Be kind; our team reads along.

    Sign in to join the discussion.

    No comments yet. If something here raised a question, ask it.

    A minaret and domes in silhouette against an orange sunset

    What Does Allahu Akbar Mean?

    Allahu akbar means "Allah is greater": greater than anything else, however big it seems. It opens every prayer, fills the call to prayer and is said on Eid. Here's the meaning, how to say it, and where Muslims use it.

    Sunlight falling across a small table and chairs

    What Does Alhamdulillah Mean?

    Alhamdulillah means "all praise is for Allah". It opens Surah Al-Fatihah, it's the Muslim answer to "how are you?", and it's said after sneezing, eating and in hard times. The meaning, how to say it, and the hadith behind it.

    A star-filled sky over red desert dunes after sunset

    What Does SubhanAllah Mean?

    SubhanAllah means "Glory be to Allah": declaring Allah free of every flaw and above anything unworthy of Him. Here's the Arabic, how to say it, when Muslims use it, and the rewards in authentic hadith.