Hadith Text
وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «لَا يَتَمَنَّيَنَّ أَحَدُكُمُ الْمَوْتَ لِضُرٍّ أَصَابَهُ، فَإِنْ كَانَ لَا بُدَّ فَاعِلاً فَلْيَقُلْ: اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْراً لِي، وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْراً لِي». مُتَّفَقٌ عَلَيْهِ.
Full Translation
On the authority of Anas (may Allah be pleased with him) who said: The Messenger of Allah ﷺ said:
“None of you should wish for death because of a harm that has befallen him. But if he cannot help it, let him say: O Allah — keep me alive as long as life is better for me, and take me when death is better for me.”
Agreed upon.
Meanings of Key Words
- La yatamannayanna (لَا يَتَمَنَّيَنَّ) — let none of you wish; the emphatic prohibition — the doubled nun at the end of the verb makes it among the strongest negations in Arabic grammar. Not “it is disliked to wish for death” — a firm, emphatic: do not
- Li-durrin asabahu (لِضُرٍّ أَصَابَهُ) — because of a harm that has befallen him; the reason being prohibited is specific — wishing for death because of a difficulty. The prohibition is not about death itself but about using death as the escape route from present pain
- Fa-in kana la budda fa’ilan (فَإِنْ كَانَ لَا بُدَّ فَاعِلاً) — but if he cannot help it; la budda — there is no avoiding it, it is unavoidable. The Prophet ﷺ acknowledges human reality: sometimes the feeling is overwhelming and the person cannot simply stop. The teaching does not condemn the feeling — it redirects it
- Allahuma ahyini ma kanat al-hayatu khayran li (اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْراً لِي) — O Allah, keep me alive as long as life is better for me; ma kanat — for as long as. The duration of life is submitted entirely to divine knowledge of what is better. The person is not asking to live — they are asking Allah to make the decision about whether they should
- Wa tawaffani idha kanat al-wafatu khayran li (وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْراً لِي) — and take me when death is better for me; again — idha — when. Not if. The timing of death is submitted to the same divine knowledge. The person is not asking to die — they are asking Allah to bring death when He knows it to be the better outcome
Hadith Lessons
This hadith is a direct intervention in one of the most human of responses to sustained suffering: the wish to escape. It does not condemn the person who reaches that place. It does not tell them their feeling is wrong. It tells them: do not make that wish — and here is what to say instead.
Why the Prohibition
Wishing for death because of harm contains a hidden claim: that the person knows death would be better than continued life in their current condition. It is a judgment about what is good for them — made from inside pain, with limited knowledge, at the moment of least clarity.
The entire chapter has been building toward one principle: the believer does not know what is good for them better than Allah does. Hadith 39 just established that affliction itself is the form in which Allah’s intention of khair arrives. The person who wishes for death to escape the affliction is, in effect, trying to exit the very vehicle through which Allah is delivering their good.
Beyond this, the scholars note that wishing for death carries a subtle objection to divine decree — a “this should not be happening to me” directed at the present moment with enough intensity to want out entirely. It is the furthest point from ihtisab — from consciously submitting the suffering to Allah with expectation of reward.
“But If He Cannot Help It” — The Prophet ﷺ Meets Human Reality
This phrase is one of the most compassionate pivots in the chapter. The Prophet ﷺ knows that telling someone in deep suffering “do not wish for death” may not be enough — the feeling can be overwhelming, the pain can be consuming, and the wish can arise faster than it can be suppressed.
So he does not stop at the prohibition. He says: if you cannot avoid it — here is what to say. He gives a replacement, not just a restriction. The feeling is redirected rather than simply condemned.
This is the Prophet’s ﷺ characteristic method throughout this chapter: he meets the person where they are, acknowledges what is real, and gives them something better to do with what they are feeling. The woman at the grave — he waited for her to be able to hear. The feverish body — he confirmed the pain before explaining its meaning. Here — he acknowledges that the wish can overwhelm, and provides the exit that is not an exit from life but an exit from the claim to know what is best.
The Du’a — Its Precision
“O Allah — keep me alive as long as life is better for me, and take me when death is better for me.”
Every word of this du’a is a transfer of authority. The person is not asking to live. They are not asking to die. They are asking Allah — who alone knows what is better — to make both decisions. The entire content of the wish is handed over.
The person who says this sincerely has done something profound: they have taken the most intimate of all questions — when should my life end? — and placed it entirely in the hands of the One who knows the answer. They have stopped trying to solve their pain through the only exit they can imagine, and instead opened a door to the One who can see all the exits they cannot.
The scholars note that this du’a is recommended for regular recitation — not only in moments of extreme distress but as a standing orientation of the believer toward their own life and death. It is the du’a of someone who has genuinely surrendered the timeline of their existence to Allah, in ease and in difficulty alike.
Where This Hadith Sits in the Chapter
The chapter began by teaching what patience is and what it produces. It moved through the great models of patience — prophets, companions, the woman at the fire. It descended to the thorn and the leaf. It established that affliction is the sign of divine intention of khair.
And now, at the close of the chapter’s main sequence, it addresses the moment when patience reaches its breaking point — when the person wants out entirely. The teaching does not abandon them there. It meets them there and says: even here, there is a better way to hold this. Even here, the answer is not to escape the life — it is to submit its duration to the One who gave it.
The chapter ends where it began: with the believer’s entire affair in Allah’s hands. Ease and hardship — Hadith 27. Life and death — Hadith 40. All of it submitted. All of it trusted. That is the chapter’s final word on patience.
Three Questions to Close With
- Have I ever reached the place this hadith addresses — the wish to escape through death, or through some equivalent exit from a life that had become unbearable? And looking back, what was Allah delivering through the very period I most wanted to leave?
- The du’a transfers the decision entirely to Allah. Is there a dimension of my life — beyond just its length — that I am currently holding in my own hands and trying to determine from inside the pain, rather than submitting to the One who can see it clearly?
- The Prophet ﷺ said “if you cannot help it” — acknowledging that the feeling can overwhelm. Is there someone in my life right now who is in that place, and does this hadith change how I would speak to them?