Dua Before Death: Allahummaghfir Li Warhamni (Bukhari)

Dua Before Death: Allahummaghfir Li Warhamni (Bukhari)

Dua before death from the Prophet’s final words (Bukhari 5674): Allahummaghfir li warhamni wa alhiqni bir-rafiq. Arabic and meaning.

اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَأَلْحِقْنِي بِالرَّفِيقِ الأَعْلَى

───── ❖ ─────

The dua before death from the Prophet’s ﷺ own final illness is Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la: ‘O Allah, forgive me, have mercy on me and join me with the highest companions.’ ‘Aishah heard him say it while he was leaning against her (Sahih al-Bukhari 5674, Sahih Muslim 2444).

Earlier versions of this page showed the dua for refuge from the punishment of the grave, which is a dua for every prayer rather than for the approach of death. This page now gives the authentic dua for this moment, the Sunnah of prompting the dying with the shahadah, and how families can support a loved one.

Allahummaghfir Li Warhamni wa Alhiqni bir-Rafiqil-A’la

‘Aishah heard the Prophet ﷺ say this in his final illness while leaning against her.

Transliteration: Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la

Meaning: O Allah, forgive me, have mercy on me and join me with the highest companions.

Source: Sahih al-Bukhari 5674, Sahih Muslim 2444

Dua Before Death Arabic text, transliteration and English meaning

The Prophet’s ﷺ Final Words Reported by ‘A’ishah

In his last days, the Prophet ﷺ was given a choice between this world and meeting Allah. ‘Aishah heard him say, as his head rested on her, ‘with the highest companions’ (ar-rafiq al-a’la) and she understood he had chosen (Sahih al-Bukhari 4449). The phrase echoes the verse about those whom Allah has blessed: the prophets, the truthful, the martyrs and the righteous, ‘and excellent are they as companions’ (Quran 4:69).

The Prophet ﷺ said: ‘Whoever loves to meet Allah, Allah loves to meet him’ (Sahih al-Bukhari 6507). Preparing for death is not only about the last moments; it is about living so that meeting Allah is something you hope for.

Istighfar and Patience at Life’s End

The Sunnah rarely leaves a believer with only one phrase, so the list below keeps them in one place:

O Allah, You are my Lord; none has the right to be worshipped but You

اللَّهُمَّ أَنْتَ رَبِّي لاَ إِلَهَ إِلاَّ أَنْتَ، خَلَقْتَنِي وَأَنَا عَبْدُكَ، وَأَنَا عَلَى عَهْدِكَ وَوَعْدِكَ مَا اسْتَطَعْتُ، أَعُوذُ بِكَ مِنْ شَرِّ مَا صَنَعْتُ، أَبُوءُ لَكَ بِنِعْمَتِكَ عَلَيَّ، وَأَبُوءُ بِذَنْبِي، فَاغْفِرْ لِي فَإِنَّهُ لاَ يَغْفِرُ الذُّنُوبَ إِلاَّ أَنْتَ

Many readers pair this one with the this dua, and our Dua for Forgiveness page walks through its transliteration and meaning line by line (source: Sahih al-Bukhari 6306).

Truly we belong to Allah and to Him we shall return

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

Learn this after the this dua if you have time, using the complete wording and meaning on our Dua in Calamity page (reference: Sahih Muslim 918).

Dua Before Death – illustration of a sunset over a quiet horizon with a single tree

Readers of this article often continue with these pages, or visit our Islamic Posts section:

Sitting with a Dying Person

Etiquette of the this dua:

  • Keep the atmosphere calm and gentle around the dying.
  • Recite Quran quietly and make dua for them.
  • Settle debts and write a will in advance.
  • After death, close the eyes and say good words, for the angels say ‘Ameen’ to what is said.

The Sunnah when death approaches:

  1. For the person who is ill: say Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la.
  2. Think well of Allah; the Prophet ﷺ said no one should die except thinking well of Allah (Sahih Muslim 2877).
  3. Family: gently prompt the dying person with La ilaha illallah (Sahih Muslim 916), without pressuring them.
  4. Whoever’s last words are La ilaha illallah will enter Paradise (Sunan Abi Dawud 3116).
  5. Do not wish for death because of hardship; if you must, say Allahumma ahyini ma kanatil-hayatu khayran li, wa tawaffani idha kanatil-wafatu khayran li (Sahih al-Bukhari 5671).
How to recite the dua before death: step-by-step Sunnah method
  • Using the grave-punishment dua as if it were the specific this dua.
  • Pressuring the dying person to repeat the shahadah many times.
  • Wailing and tearing clothes.
  • Wishing for death because of illness.

Prompting the Shahadah: What Families Ask

What is the authentic dua before death?

Sahih al-Bukhari 5674, Sahih Muslim 2444 records it as Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la, which translates as “O Allah, forgive me, have mercy on me and join me with the highest companions.” That is the wording to use as the this dua.

What is the authentic this dua?

Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la (Sahih al-Bukhari 5674).

What should family say to a dying person?

Gently remind them of La ilaha illallah (Sahih Muslim 916) and speak words of hope.

Can I wish for death in great pain?

No. Say instead the dua in Sahih al-Bukhari 5671, leaving the choice to Allah.

Preparing for the Meeting with Allah

The Prophet ﷺ met his Lord asking for forgiveness, mercy and the best companions. The this dua lets us ask for the same. Learn it now, live in a way that makes meeting Allah beloved, and help your loved ones approach that moment with hope.

  • The authentic this dua is: Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la
  • The source to cite is Sahih al-Bukhari 5674, Sahih Muslim 2444 (Sahih al-Bukhari 5674 on Sunnah.com).
  • The this dua: Allahummaghfir li warhamni wa alhiqni bir-rafiqil-a’la (Bukhari 5674, Muslim 2444).
  • Prompt the dying gently with La ilaha illallah and think well of Allah.

Written by Muhammad Faiz

Muhammad Faiz is the founder and writer of Duapoint. He researches each dua from the Quran and the major hadith collections and explains its meaning and context. Read our editorial policy.

Popular Duas
Qur’anic Reminder

أَلَا بِذِكْرِ اللَّهِ تَطْمَئِنُّ الْقُلُوبُ

“Verily, in the remembrance of Allah do hearts find rest.”

Surah Ar-Ra’d 13:28

More Duas You May Like