Published on

Dua for Long Life: Asking Allah for Years Filled With Good

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

A winding path through a lush garden toward a mosque silhouette at sunrise, warm golden and green tones

There is a dua that almost everyone thinks they know how to make — and almost everyone gets slightly wrong.

We pray for long life. We want more years. More time with the people we love, more opportunities to make amends, more mornings to catch Fajr. This is a deeply human desire and not a wrong one.

But the Sunnah teaches us to ask for something wiser than years. It teaches us to ask for a life that is actually worth living — and a death that comes at the right time.

The Dua for Long Life With Good

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

Allahumma ahyini ma kanatil-hayatu khayran li, wa tawaffani idha kanat al-wafatu khayran li

"O Allah, keep me alive as long as life is good for me, and cause me to die when death is better for me."

(Bukhari 5671, Muslim 2680)

This dua is remarkable because it does not ask for simply more time. It asks for the right amount of time — as determined by Allah, not by our fear of death or our attachment to the world. It is an act of profound surrender: "Ya Allah, You know when my being alive serves good, and You know when my returning to You serves better. I trust Your timing more than my own preferences."

When to Say It

The Prophet ﷺ mentioned this dua in the context of not wishing for death — if life continues to hold good, seek that good. If death is better, trust that too. It fits naturally in the evening adhkar, in the quiet before sleep, when mortality feels close and the soul turns toward its Lord.

The Story Behind This Dua

The hadith is narrated by Anas ibn Malik رضي الله عنه, one of the closest Companions to the Prophet ﷺ. The Prophet taught this in the context of a clear prohibition: a person should not wish for death simply because of suffering or difficulty. "None of you should wish for death because of some harm that has befallen him," he said (Bukhari 5671). But he offered this dua as the correct response — not passive resignation, but active trust in Allah's plan for your life and your death.

The Prophet ﷺ himself lived a purposeful life of 63 years. He did not seek martyrdom recklessly, yet he did not cling to life in a way that held him back from his mission. Every year he lived was densely filled with worship, service, teaching, and love. When he died, nothing was left undone that Allah had intended for him to do.

The best of the Companions shared this orientation. Umar ibn al-Khattab رضي الله عنه reportedly said: "I do not care whether I wake up in good health or illness — for I know that in both there is what is better for me." This is the fruit of truly believing the dua.

How to Make This Dua Part of Your Daily Life

This dua does something subtle and powerful when said consistently: it loosens the grip of death-anxiety. Many of us avoid thinking about death altogether, which paradoxically makes it more frightening when it comes close — in illness, in the loss of loved ones, in aging. This dua inserts your death into your daily conversation with Allah, in the gentlest possible way.

Include it in your evening adhkar. After Maghrib or before sleep, when the day is closing and the mind quiets, say this dua. It is a daily act of surrendering your timeline to Allah.

Pair it with reflection on how you are spending your life. The dua asks for life as long as it is khayr — good, beneficial. That naturally raises the question: what would make today good? What would make this week matter? Using the dua as a daily prompt for self-assessment gives it teeth beyond the words.

Combine it with maintaining family ties. The Prophet ﷺ specifically mentioned silat ar-rahim (maintaining kinship) as something that blesses a life — extending its barakah. Calling your parents, spending time with your children, reaching out to estranged relatives: these are acts that fill your life with the quality that makes it worth asking to extend.

Accept that some days you will not feel like your life is full of good. That is okay. The dua works precisely in those moments: "Ya Allah, if today is not good for me, make tomorrow better — and when my time comes to leave, make that the best thing that has ever happened to me."

Build Daily Habits That Fill Your Life With Good

DeenBack helps you track your dhikr, dua, and spiritual habits — so every day you live is a day with something worth offering Allah when you return to Him.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Dua for barakah in all your affairs:

اللَّهُمَّ اجْعَلْ خَيْرَ عُمُرِي آخِرَهُ، وَخَيْرَ عَمَلِي خَوَاتِيمَهُ، وَخَيْرَ أَيَّامِي يَوْمَ أَلْقَاكَ

Allahumma ij'al khayra 'umuri akhirahu, wa khayra 'amali khawatimahu, wa khayra ayyami yawma alqak

"O Allah, make the best of my life its final part, the best of my deeds my last deeds, and the best of my days the day I meet You."

— (Authenticated from Prophetic narrations; see Tabarani and other collections)

Dua for a good ending (husn al-khatimah):

اللَّهُمَّ اخْتِمْ لَنَا بِخَيْرٍ

Allahumma-chtim lana bikhayr

"O Allah, seal our lives with good."

For understanding what it means to live with purpose each day, dua for spiritual growth gives the full framework for a life of consistent growth. The dua for gratitude pairs naturally — appreciating what each day contains is how you make it the kind of life worth extending. If fear of death is a real struggle for you, dua for good death speaks directly to that anxiety with the full Sunnah on husn al-khatimah. And what is tawakkul in Islam explains the full Islamic understanding of trusting Allah's timing that underlies this dua.

Common Questions

Can children say this dua on behalf of their parents?

Yes. Dua for others is valid and the Prophet encouraged it. Children praying for their parents' long and good lives is a beautiful form of birr al-walidayn (honoring parents).

What if I am afraid of death? Does making this dua mean accepting death?

The dua is not about accepting death eagerly — it is about accepting Allah's will. Fear of death is natural. What the dua does is acknowledge that Allah knows better than you when death serves your highest good. You can hold both: genuine love of life and surrender to Allah's timing.

The Prophet forbade wishing for death. How is this dua different?

The prohibition is against wishing for death because of worldly pain or loss — the nafs giving up on Allah's mercy. This dua is the opposite: it hands the decision entirely to Allah with full trust in His wisdom. It says "I want what is best for me, and You know what that is." That is tawakkul, not despair.

More Time Is Not Always the Answer

What we really want when we want a long life is more time to do what matters: to love, to worship, to make amends, to grow. The dua for long life teaches us to pursue those things now, in whatever time we have — and to trust that the time we are given is exactly enough to complete what Allah intended for us.

Say it tonight. And tomorrow morning. And let the words slowly shift how you think about the life you already have.

Make Every Day a Day Worth Extending

DeenBack helps you build daily worship habits — the kind that fill a life with so much good that you find yourself saying: Ya Allah, let me keep going.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

What is the Islamic dua for long life?

The most authentic dua for a good and long life is: Allahumma ahyini ma kanatil-hayatu khayran li, wa tawaffani idha kanat al-wafatu khayran li — 'O Allah, keep me alive as long as life is good for me, and cause me to die when death is better for me.' (Bukhari 5671, Muslim 2680). This is wiser than asking simply for more years — it asks for quality and divine timing.

Is it wrong to want to live a long life?

No. The Prophet was asked who among people was best, and he said: those whose life is long and whose deeds are good (Tirmidhi 2329). Wanting a long life specifically to do more good — to worship more, serve more, and build more — is a praiseworthy intention. The danger is wanting long life for its own sake without the intention of filling it with good.

Does Islam guarantee a long life if you make this dua?

No dua overrides what Allah has already decreed. The lifespan (ajal) is fixed. However, the Prophet taught that maintaining family ties (silat ar-rahim) and certain righteous actions cause Allah to bless one's time so that a shorter life contains more benefit than a longer empty one. Dua aligns your heart and intentions with what is best.

What deeds extend barakah in life?

The Prophet mentioned silat ar-rahim (maintaining family ties) as something that extends life with barakah (Bukhari 2067). Giving charity, seeking knowledge, being consistent in salah, and making dhikr are all mentioned in the Sunnah as practices that fill a life with meaning and blessing — which is, in essence, what 'long life' really means.