Dua for the Deceased: Authentic Duas for Someone Who Died
When someone dies, the living are left with one thing they can still do for them, and Islam makes it clear that it works. This guide gathers the authentic duas for the deceased taught by the Prophet (peace be upon him): the words to say when you hear the news, the dua of the funeral prayer with male, female and plural forms, what to say at the grave, how to offer condolences, and the deeds that continue to reach a person after death.
Bring your worship into one calm app
Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.
What's in this guide
- Does dua for the deceased actually reach them?
- What to say when you hear someone has died
- The dua for the deceased in the janazah prayer
- Dua at the grave and when visiting the cemetery
- How to offer condolences in Islam
- The deeds that reach the deceased
- Dua for the deceased in your own words
- Frequently asked questions
- Frequently asked questions
Does dua for the deceased actually reach them?
Yes, by the clear text of the Quran and the Sunnah. Allah describes the believers who came later praying for those before them: "Our Lord, forgive us and our brothers who preceded us in faith" (Quran 59:10). The Prophet (peace be upon him) prayed for the dead at every funeral, stood at graves and asked forgiveness for their occupants, and said: "When a person dies, his deeds come to an end except three: ongoing charity, knowledge from which benefit is gained, or a righteous child who prays for him." (Muslim)
He also said about the funeral prayer itself: "No Muslim dies and forty men who associate nothing with Allah stand to pray over him, except that Allah accepts their intercession for him." (Muslim). Dua for the deceased is not a comfort ritual for the living. It is intercession, and Allah accepts it.
Bring your worship into one calm app
Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.
What to say when you hear someone has died
The first words are from the Quran, and they are said for any loss, large or small:
إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ
Inna lillahi wa inna ilayhi raji'un
"Indeed we belong to Allah, and indeed to Him we will return." (Quran 2:156)
The Prophet (peace be upon him) taught that whoever says this at a calamity, and then adds the following, Allah rewards him in his affliction and replaces it with something better (Muslim):
اللَّهُمَّ أْجُرْنِي فِي مُصِيبَتِي وَأَخْلِفْ لِي خَيْرًا مِنْهَا
Allahumma'jurni fi musibati wa akhlif li khayran minha
"O Allah, reward me in my affliction and replace it for me with something better." Umm Salamah said this when her husband Abu Salamah died, thought that no one could be better than him, and Allah later married her to the Prophet himself.
If you are with the dying person or arrive just after
Umm Salamah reported that when Abu Salamah died, the Prophet (peace be upon him) came, closed his eyes, and said: "When the soul is taken, the sight follows it." Then he said (Muslim):
اللَّهُمَّ اغْفِرْ لِأَبِي سَلَمَةَ، وَارْفَعْ دَرَجَتَهُ فِي الْمَهْدِيِّينَ، وَاخْلُفْهُ فِي عَقِبِهِ فِي الْغَابِرِينَ، وَاغْفِرْ لَنَا وَلَهُ يَا رَبَّ الْعَالَمِينَ، وَافْسَحْ لَهُ فِي قَبْرِهِ وَنَوِّرْ لَهُ فِيهِ
Allahummaghfir li [name], warfa' darajatahu fil mahdiyyin, wakhlufhu fi aqibihi fil ghabirin, waghfir lana wa lahu ya Rabbal alamin, wafsah lahu fi qabrihi wa nawwir lahu fih
"O Allah, forgive [name], raise his rank among the rightly guided, take care of those he leaves behind, forgive us and him, O Lord of the worlds, make his grave spacious for him and fill it with light."
Put the person's name where Abu Salamah's is. For a woman: Allahummaghfir li [name], warfa' darajataha fil mahdiyyin, wakhlufha fi aqibiha fil ghabirin, waghfir lana wa laha... wafsah laha fi qabriha wa nawwir laha fih.
The dua for the deceased in the janazah prayer
The funeral prayer has no ruku or sujud. It is four takbirs standing: al-Fatihah after the first, salawat on the Prophet after the second, dua for the deceased after the third, a brief dua after the fourth, then the salam. The dua after the third takbir is the heart of the prayer, and these are the ones the Prophet (peace be upon him) used.
The main janazah dua
Awf ibn Malik heard the Prophet (peace be upon him) pray over a deceased man with these words and said he wished he had been that dead man (Muslim):
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ، وَعَافِهِ وَاعْفُ عَنْهُ، وَأَكْرِمْ نُزُلَهُ، وَوَسِّعْ مُدْخَلَهُ، وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ، وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الْأَبْيَضَ مِنَ الدَّنَسِ، وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ، وَأَهْلًا خَيْرًا مِنْ أَهْلِهِ، وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ، وَأَدْخِلْهُ الْجَنَّةَ، وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ وَمِنْ عَذَابِ النَّارِ
Allahummaghfir 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'idhhu min adhabil qabri wa min adhabin nar
"O Allah, forgive him and have mercy on him, keep him safe and sound and pardon him, honour his reception and make his entrance wide, wash him with water and snow and hail, and cleanse him of sins as You cleanse a white garment 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 into Paradise and protect him from the punishment of the grave and the punishment of the Fire."
For a woman, the pronouns change to the feminine:
Allahummaghfir laha warhamha, wa afiha wa'fu anha, wa akrim nuzulaha, wa wassi' mudkhalaha, waghsilha bil ma'i wath thalji wal barad, wa naqqiha minal khataya kama naqqaytath thawbal abyada minad danas, wa abdilha daran khayran min dariha, wa ahlan khayran min ahliha, wa zawjan khayran min zawjiha, wa adkhilhal jannah, wa a'idhha min adhabil qabri wa min adhabin nar.
For two people, use huma: Allahummaghfir lahuma warhamhuma... and for a group, hum: Allahummaghfir lahum warhamhum... The Arabic pronoun shifts are the only change; the words are otherwise identical.
The dua for the living and the dead together
The Prophet (peace be upon him) also prayed over the deceased with this dua, which covers everyone present as well as the one in front of them (Abu Dawud, Tirmidhi, Ibn Majah; graded sahih):
اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا، وَشَاهِدِنَا وَغَائِبِنَا، وَصَغِيرِنَا وَكَبِيرِنَا، وَذَكَرِنَا وَأُنْثَانَا، اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الْإِسْلَامِ، وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الْإِيمَانِ، اللَّهُمَّ لَا تَحْرِمْنَا أَجْرَهُ وَلَا تُضِلَّنَا بَعْدَهُ
Allahummaghfir li hayyina wa mayyitina, wa shahidina wa gha'ibina, wa saghirina wa kabirina, wa dhakarina wa unthana. Allahumma man ahyaytahu minna fa ahyihi alal Islam, wa man tawaffaytahu minna fa tawaffahu alal iman. Allahumma la tahrimna ajrahu wa la tudillana ba'dah
"O Allah, forgive our living and our dead, those present and those absent, our young and our old, our males and our females. O Allah, whomever of us You keep alive, keep him alive upon Islam, and whomever of us You take, take him upon faith. O Allah, do not deprive us of his reward and do not let us go astray after him."
The short janazah dua
For those who find the long versions difficult to memorise, this shorter dua is also from the Sunnah (Abu Dawud, Ibn Majah; graded sahih):
اللَّهُمَّ إِنَّ فُلَانَ بْنَ فُلَانٍ فِي ذِمَّتِكَ وَحَبْلِ جِوَارِكَ، فَقِهِ مِنْ فِتْنَةِ الْقَبْرِ وَعَذَابِ النَّارِ، وَأَنْتَ أَهْلُ الْوَفَاءِ وَالْحَقِّ، فَاغْفِرْ لَهُ وَارْحَمْهُ، إِنَّكَ أَنْتَ الْغَفُورُ الرَّحِيمُ
Allahumma inna [name] ibn [father's name] fi dhimmatika wa habli jiwarika, faqihi min fitnatil qabri wa adhabin nar, wa anta ahlul wafa'i wal haqq, faghfir lahu warhamhu, innaka antal Ghafurur Rahim
"O Allah, [name] son of [name] is under Your protection and in the bond of Your care, so protect him from the trial of the grave and the punishment of the Fire. You are the One who keeps promises and the Truth. Forgive him and have mercy on him. You are the Forgiving, the Merciful."
Dua for a deceased child
For a child who dies before the age of accountability, there is no sin to ask forgiveness for. The dua the early Muslims used asks that the child be stored up as a reward for the parents. Al-Bukhari mentions it in his Sahih without a full chain, and it is reported with a chain in al-Bayhaqi:
اللَّهُمَّ اجْعَلْهُ لَنَا فَرَطًا وَسَلَفًا وَذُخْرًا
Allahummaj'alhu lana faratan wa salafan wa dhukhra
"O Allah, make him for us a forerunner, one who goes ahead to prepare, and a stored treasure." Add: wa thaqqil bihi mawazinana wa a'zim bihi ujurana (and make our scales heavy with him and increase our reward through him). For a girl: Allahummaj'alha lana faratan wa salafan wa dhukhra.
Bring your worship into one calm app
Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.
Dua at the grave and when visiting the cemetery
Visiting graves is a Sunnah that reminds the visitor of death and benefits the dead through the dua that is made there. The Prophet (peace be upon him) said, "I had forbidden you to visit graves, but now visit them, for they remind you of the Hereafter." (Muslim)
The greeting of the graves
Aisha reported that the Prophet (peace be upon him) would go out to al-Baqi cemetery at night and say (Muslim):
السَّلَامُ عَلَيْكُمْ دَارَ قَوْمٍ مُؤْمِنِينَ، وَأَتَاكُمْ مَا تُوعَدُونَ، غَدًا مُؤَجَّلُونَ، وَإِنَّا إِنْ شَاءَ اللَّهُ بِكُمْ لَاحِقُونَ، اللَّهُمَّ اغْفِرْ لِأَهْلِ بَقِيعِ الْغَرْقَدِ
As-salamu alaykum dara qawmin mu'minin, wa atakum ma tu'adun, ghadan mu'ajjalun, wa inna in sha Allahu bikum lahiqun. Allahummaghfir li ahli Baqi'il Gharqad
"Peace be upon you, abode of a believing people. What you were promised has come to you, tomorrow it is deferred for us, and we will, if Allah wills, join you. O Allah, forgive the people of Baqi al-Gharqad." Replace the last phrase with the name of the cemetery or the person: Allahummaghfir li ahli hadhihil maqbarah (forgive the people of this cemetery).
The shorter greeting taught to the Companions (Muslim):
السَّلَامُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ، وَإِنَّا إِنْ شَاءَ اللَّهُ بِكُمْ لَاحِقُونَ، أَسْأَلُ اللَّهَ لَنَا وَلَكُمُ الْعَافِيَةَ
As-salamu alaykum ahlad diyari minal mu'minina wal muslimin, wa inna in sha Allahu bikum lahiqun, as'alullaha lana wa lakumul afiyah
"Peace be upon you, people of these dwellings, believers and Muslims. We will, if Allah wills, join you. I ask Allah for safety for us and for you."
After the burial
When the Prophet (peace be upon him) finished burying someone, he would stand at the grave and say: "Seek forgiveness for your brother and ask for him to be made firm, for he is now being questioned." (Abu Dawud; graded sahih). So immediately after burial, everyone present says:
اللَّهُمَّ اغْفِرْ لَهُ، اللَّهُمَّ ثَبِّتْهُ
Allahummaghfir lahu, Allahumma thabbit-hu: "O Allah, forgive him. O Allah, make him firm." For a woman: Allahummaghfir laha, Allahumma thabbit-ha.
Manners at the grave
- Face the grave when greeting, then face the qiblah for dua, as the scholars recommend.
- Do not sit on graves or walk over them; the Prophet forbade it (Muslim).
- Do not pray salah at the grave or towards it, and do not ask the dead for anything. Dua is made to Allah for them, never to them.
- Women may visit graves with the same manners, avoiding wailing and frequent visits that lead to it, according to the majority of scholars.
How to offer condolences in Islam
Condolence (ta'ziyah) is Sunnah for three days after the death, and its purpose is to strengthen the bereaved to be patient. The Prophet's own words are the best.
When his daughter sent word that her son was dying, he sent back this reply (Bukhari and Muslim):
إِنَّ لِلَّهِ مَا أَخَذَ وَلَهُ مَا أَعْطَى، وَكُلُّ شَيْءٍ عِنْدَهُ بِأَجَلٍ مُسَمًّى، فَلْتَصْبِرْ وَلْتَحْتَسِبْ
Inna lillahi ma akhadha wa lahu ma a'ta, wa kullu shay'in indahu bi ajalin musamma, faltasbir waltahtasib
"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." (Say faltasbir waltahtasib to a woman; to a man, fasbir wahtasib.)
The commonly used condolence phrase, from the words of the scholars:
أَعْظَمَ اللَّهُ أَجْرَكَ، وَأَحْسَنَ عَزَاءَكَ، وَغَفَرَ لِمَيِّتِكَ
A'zamallahu ajrak, wa ahsana aza'ak, wa ghafara li mayyitik
"May Allah magnify your reward, grant you good consolation, and forgive your deceased." To a woman: a'zamallahu ajraki, wa ahsana aza'aki, wa ghafara li mayyitiki.
Practical condolence
- The Prophet (peace be upon him) said, "Prepare food for the family of Ja'far, for something has come to them that occupies them." (Abu Dawud, Tirmidhi; hasan). Bringing food to the bereaved family is Sunnah. Gathering at their house to be fed by them is not.
- Say little. Sit, make dua, and leave. The bereaved do not need a lecture on patience.
- Avoid saying anything that implies objection to Allah's decree, such as "he was too young" or "it wasn't his time".
The deeds that reach the deceased
Dua is the first, and these are the others established in the Sunnah.
- Dua and istighfar. Every dua on this page, and any in your own words. The Prophet (peace be upon him) said that a person's rank in Paradise is raised because of his child's istighfar for him (Ibn Majah; hasan).
- Sadaqah on their behalf. A man told the Prophet that his mother had died suddenly and asked whether giving charity for her would benefit her. He said yes (Bukhari and Muslim). Sadaqah jariyah, ongoing charity such as a well, a masjid share, or a printed Quran, keeps rewarding them.
- Hajj and Umrah on their behalf, after performing your own (Bukhari).
- Fasting on their behalf if they died owing obligatory fasts: "Whoever dies owing fasts, his guardian should fast on his behalf." (Bukhari and Muslim)
- Paying their debts. The Prophet said the soul of the believer is held back by his debt until it is paid (Tirmidhi; hasan). Settle debts before anything else.
- Fulfilling their vows and promises, and maintaining the relatives and friends they kept.
- Reciting Quran for them. Scholars differ on whether the reward of recitation reaches the dead. The Hanafi and Hanbali schools say it does; the Shafi'i and Maliki schools in their earlier positions preferred dua and sadaqah. All agree that dua after recitation is beneficial, so there is no harm in reciting and then asking Allah to grant the reward to them.
What is not from the Sunnah
Fixed gatherings on the third, seventh or fortieth day, hired reciters, and annual death anniversaries are cultural customs rather than Prophetic practice. Scholars across the schools have cautioned against treating them as obligations. The Sunnah is simple: pray for them often, give charity for them, and honour the people they loved.
Dua for the deceased in your own words
The set duas carry the exact words of the Prophet and should be learned. But nothing stops you from adding your own after them, in any language, especially in sujud and in the last third of the night. Say their name. Ask Allah to forgive them, to widen and light their grave, to raise them among the righteous, to reunite you with them in Jannah, and to make you the kind of child, spouse, sibling or friend whose dua keeps arriving for them year after year. The Prophet (peace be upon him) said, "The dua of a Muslim for his brother in his absence is answered. There is an angel at his head who says, whenever he prays for his brother, 'Ameen, and for you the same.'" (Muslim)
Bring your worship into one calm app
Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.
Frequently asked questions
What is the dua for someone who passed away?
The main Sunnah dua is Allahummaghfir lahu warhamhu, wa afihi wa'fu anhu, wa akrim nuzulahu, wa wassi' mudkhalahu... "O Allah, forgive him and have mercy on him, keep him safe and pardon him, honour his reception and make his entrance wide..." (Muslim). For a woman, change the pronouns to laha, warhamha, wa afiha wa'fu anha, and so on.
What do you say when you hear someone has died?
Say Inna lillahi wa inna ilayhi raji'un, "Indeed we belong to Allah and to Him we return" (Quran 2:156), and add Allahumma'jurni fi musibati wa akhlif li khayran minha, "O Allah, reward me in my affliction and replace it with something better" (Muslim). Then make dua for the deceased by name.
Does dua reach the dead in Islam?
Yes. The Quran records the believers praying for those who died before them (59:10), the Prophet (peace be upon him) said a righteous child's dua continues to benefit a parent after death (Muslim), and he taught that the intercession of forty Muslims praying the janazah is accepted (Muslim).
What is the dua when visiting a grave?
As-salamu alaykum ahlad diyari minal mu'minina wal muslimin, wa inna in sha Allahu bikum lahiqun, as'alullaha lana wa lakumul afiyah: "Peace be upon you, people of these dwellings, believers and Muslims. We will, if Allah wills, join you. I ask Allah for safety for us and for you." (Muslim). Then make dua to Allah for the specific person.
How do you offer condolences in Islam?
Say a'zamallahu ajrak, wa ahsana aza'ak, wa ghafara li mayyitik, "May Allah magnify your reward, grant you good consolation and forgive your deceased," or use the Prophet's words: inna lillahi ma akhadha wa lahu ma a'ta, fasbir wahtasib. Bring food to the family, keep the visit short, and make dua for the deceased.
Can I give charity or perform Hajj for a deceased person?
Yes. The Prophet (peace be upon him) told a man that charity given on behalf of his deceased mother would benefit her (Bukhari and Muslim), and permitted Hajj to be performed on behalf of a deceased parent by someone who has already performed their own (Bukhari). Fasts owed by the deceased may also be made up by a relative.