Husn al-khatimah, a 'good ending,' refers to dying in a state of sincere faith and nearness to Allah — ideally with one's last words affirming belief, and a heart at peace with Allah's decree, with no lingering rebellion or despair. Scholars have pointed to certain circumstances as hopeful signs of a good ending: dying while engaged in worship or a righteous act — mid-prayer, while fasting, on pilgrimage, in service to others — or as a martyr. But no one, including the person themselves, can fully know their own ending in advance, which is precisely the point: it teaches us to live each day as preparation, keeping our hearts turned toward Allah rather than assuming we have unlimited time to fix things later. Many Muslims make a regular dua asking Allah to grant them and their loved ones a good ending, and to keep their hearts firm on faith until the very last moment: 'Our Lord, do not let our hearts deviate after You have guided us' (3:8). If someone you loved passed in a moment that looks, from the outside, peaceful or meaningful, it's a comfort you're allowed to hold onto — while always leaving the final judgment, as with everything, to Allah alone.
Q&A · Death & Afterlife
What is meant by a 'good death' (husn al-khatimah)?
References
Quran 3:8Sunan Abu Dawud 3116
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.