7 Powerful Dua for Good Death (Husn al-Khatimah)

Most of us avoid thinking about our last moments. Yet every one of us will face them, and the Prophet ﷺ taught that deeds are judged by their endings. So the question isn’t morbid. It’s practical: what should I ask Allah for now, while I still can? This guide shares seven authentic dua for good death, with the Arabic, the meaning and the source, plus what Islam says about wishing for death and how to prepare for husn al-khatimah, a good ending, at Deen Truth Hub.

What Is Husn al-Khatimah and Why Does It Matter?

Husn al-khatimah means “a good ending.” In Islam, it refers to a believer dying in a state of faith and obedience to Allah, ideally with the testimony of faith, la ilaha illallah, as their last words.

The idea rests on authentic reports. A hadith in Sahih al-Bukhari says that deeds are judged by their final outcome. Sahih Muslim reports that every servant will be resurrected upon what he died upon. And Abu Dawud reports that whoever’s last words are “la ilaha illallah” will enter Paradise.

That’s the hopeful side. A good ending is something Allah honors in those who live sincerely and ask Him for it. The sobering side is that a bad ending is a real fear the righteous have always carried. The Companions worried about it constantly. That worry isn’t pessimism. It’s what keeps a person humble and consistent, which is why a dua for good death in Islam belongs in your daily routine, not only in old age.

Can You Ask for Death in Islam?

No. The Prophet ﷺ forbade wishing for death because of hardship. In Sahih al-Bukhari and Sahih Muslim, he said none of you should wish for death because of a harm that has befallen him. If he must say something, let him say the dua in the first entry below.

This matters for anyone going through grief, illness or depression. The reason given is simple: a believer’s life is a chance to add good deeds, and death ends that chance. If you’re in a dark place right now, please hear this clearly. The answer isn’t to ask for death. It’s to ask for help, and to reach out to people who can support you.

Here’s the carefully balanced part. Scholars say asking for death is permissible only in one situation: fear of a trial that would damage your faith. The dua in entry five covers that. In a talk from the Yaqeen Institute’s A Du’a Away series, Dr. Omar Suleiman makes the same point, that the exception is a fitna to one’s religion, not ordinary hardship.

7 Powerful Dua for Good Death Every Muslim Should Learn

1. The Prophet’s balanced dua for life and death

Arabic: اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْرًا لِي، وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْرًا لِي

Transliteration: Allahumma ahyini ma kanatil-hayatu khayran li, wa tawaffani idha kanatil-wafatu khayran li.

Meaning: “O Allah, keep me alive as long as life is better for me, and take me when death is better for me.” (Sahih al-Bukhari and Sahih Muslim)

This is the safest of all duas about death, because you leave the timing entirely to Allah’s wisdom.

2. The dua of Yusuf (AS) to die as a Muslim

Arabic: تَوَفَّنِي مُسْلِمًا وَأَلْحِقْنِي بِالصَّالِحِينَ

Transliteration: Tawaffani musliman wa alhiqni bis-salihin.

Meaning: “Cause me to die as a Muslim and join me with the righteous.” (Qur’an 12:101)

Yusuf (AS) had power, wealth and a reunited family, yet this is what he asked for. If a prophet at the peak of success prayed for a good ending, so should we.

3. Dying among the righteous

Arabic: رَبَّنَا فَاغْفِرْ لَنَا ذُنُوبَنَا وَكَفِّرْ عَنَّا سَيِّئَاتِنَا وَتَوَفَّنَا مَعَ الْأَبْرَارِ

Transliteration: Rabbana faghfir lana dhunubana wa kaffir ‘anna sayyi’atina wa tawaffana ma’al-abrar.

Meaning: “Our Lord, forgive our sins, erase our misdeeds and let us die with the righteous.” (Qur’an 3:193)

It pairs forgiveness with a good ending, and that’s a smart combination. Clear the record, then ask to be taken in good company.

4. Dying in patience and submission

Arabic: رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ

Transliteration: Rabbana afrigh ‘alayna sabran wa tawaffana muslimin.

Meaning: “Our Lord, pour upon us patience and let us die as Muslims.” (Qur’an 7:126)

The magicians of Pharaoh said this when he threatened them with death. It’s a dua for steadiness under pressure.

5. Protection from a faith-destroying trial

Arabic: اللَّهُمَّ إِنِّي أَسْأَلُكَ فِعْلَ الْخَيْرَاتِ، وَتَرْكَ الْمُنْكَرَاتِ، وَحُبَّ الْمَسَاكِينِ، وَأَنْ تَغْفِرَ لِي وَتَرْحَمَنِي، وَإِذَا أَرَدْتَ فِتْنَةَ قَوْمٍ فَتَوَفَّنِي غَيْرَ مَفْتُونٍ

Transliteration: Allahumma inni as’aluka fi’lal-khayrat, wa tarkal-munkarat, wa hubbal-masakin, wa an taghfira li wa tarhamani, wa idha aradta fitnata qawmin fatawaffani ghayra maftun.

Meaning: “O Allah, I ask You to enable me to do good, to leave evil, to love the poor, and to forgive me and have mercy on me. And if You intend a trial for a people, take me to You without being tried.” (Jami at-Tirmidhi)

Notice what it asks first: good deeds, leaving evil, loving the poor. The request for a safe exit comes after.

6. Firmness of heart on the religion

Arabic: يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِي عَلَى دِينِكَ

Transliteration: Ya muqallibal-qulub, thabbit qalbi ‘ala dinik.

Meaning: “O Turner of hearts, make my heart firm upon Your religion.” (Jami at-Tirmidhi)

Umm Salamah (RA) reported that the Prophet ﷺ made this dua often. If he asked for firmness, none of us can afford to skip it. It’s short enough to say a dozen times a day.

7. A good outcome in all affairs

Arabic: اللَّهُمَّ أَحْسِنْ عَاقِبَتَنَا فِي الْأُمُورِ كُلِّهَا، وَأَجِرْنَا مِنْ خِزْيِ الدُّنْيَا وَعَذَابِ الْآخِرَةِ

Transliteration: Allahumma ahsin ‘aqibatana fil-umuri kulliha, wa ajirna min khizyid-dunya wa ‘adhabil-akhirah.

Meaning: “O Allah, make our end good in all matters, and protect us from the disgrace of this world and the punishment of the Hereafter.” (Reported in Musnad Ahmad)

Scholars have differed on the grading of this narration, so if you want to be careful, check with a teacher you trust, or use the other six and make this request in your own words. The meaning is sound.

A Quick Reference for Your Dua for Good Death

#DuaBest used
1Allahumma ahyini ma kanatil-hayatu khayran liWhen you’re tempted to wish for death
2Tawaffani musliman wa alhiqni bis-salihinDaily, after any prayer
3Wa tawaffana ma’al-abrarAlongside istighfar
4Wa tawaffana musliminIn hardship or fear
5Fatawaffani ghayra maftunWhen trials around you grow
6Thabbit qalbi ‘ala dinikAny time, many times
7Allahumma ahsin ‘aqibatanaMorning and evening

What About Asking for a Long Life?

Asking for a long life is allowed, as long as the motive is more good, not more comfort. Umm Habibah (RA) once asked Allah to let her enjoy a long life with her family, and the Prophet ﷺ told her that lifespans are already decreed, and that it would have been better to ask for protection from the punishment of the grave and the Fire (Sahih Muslim). The lesson isn’t that her dua was wrong. It’s that the best use of dua is to ask for what lasts.

How to Prepare for a Good Ending: 5 Practical Habits

A dua for good death works alongside action, not in place of it. These habits are realistic for most people.

  1. Guard your five daily prayers. The one who lives upon prayer is far more likely to die upon it.
  2. Repent quickly. Don’t leave a sin sitting for years. Seek forgiveness the same day.
  3. Keep your tongue wet with dhikr. Phrases like “la ilaha illallah” become the words that come naturally when it matters.
  4. Settle your affairs. Clear debts, write a will, and mend broken relationships. It’s a mercy to your family.
  5. Keep good company. Friends who remind you of Allah shape how you live and how you end.

If you’re married, make it a shared effort. A spouse who encourages prayer and repentance is a real support for the akhirah. Our guide to the best dua for marriage in Islam covers supplications for exactly that kind of partnership.

In many South Asian homes, talking about death is almost taboo. That silence helps nobody. Teaching children and parents a few of these duas is a quiet gift.

Frequently Asked Questions About Dua for Good Death

What is the best dua for good death in Islam?

The most reliable is the Prophet’s dua: “Allahumma ahyini ma kanatil-hayatu khayran li, wa tawaffani idha kanatil-wafatu khayran li.” It’s reported in Sahih al-Bukhari and Sahih Muslim and leaves the timing to Allah.

Is it haram to wish for death?

The Prophet ﷺ forbade wishing for death because of hardship. Scholars allow asking Allah to take you only when you fear a trial that could destroy your faith, using the wording taught in the authentic dua.

What does husn al-khatimah mean?

Husn al-khatimah means “a good ending.” It describes a believer dying in faith and obedience, ideally with the testimony of faith as their last words.

What should I say when someone is dying?

Gently remind them of “la ilaha illallah” without pressuring them, as the Prophet ﷺ advised. Make dua for them, stay calm, and avoid saying anything that would distress them.

Can I make this dua in my own language?

Yes. Dua is a conversation with Allah and may be made in any language. Learning the Arabic is rewarding, but your own sincere words are valid too.

Conclusion: Start With One Dua Today

A good ending is built one day at a time, and it begins with asking. Pick one dua from this list, perhaps “Thabbit qalbi ‘ala dinik,” and say it after each prayer this week. Keep your prayers, repent quickly and leave the timing with Allah. If this guide helped, share it with a parent or friend, and read more practical Islamic guides at Deen Truth Hub. Tell us in the comments which dua you’re starting with.

A note on accuracy: this article reflects mainstream Sunni sources. For personal matters, including grief, illness or end-of-life questions, speak with a qualified local scholar. If you’re struggling with thoughts of ending your life, please contact a local crisis line or someone you trust today

I share authentic Islamic knowledge based on the Holy Quran, authentic Hadith, trusted Islamic books, and reliable scholarly sources. My articles cover Hadith, Duas, Islamic stories, history, and everyday Islamic guidance. My mission is to make Islamic knowledge simple, accessible, and beneficial for everyone. Deen Truth Hub – Sharing Islamic Knowledge, Inspiring Faith, and Spreading Truth.

Leave a Comment