اللَّهُمَّ إِنِّي أَسْأَلُكَ حُسْنَ الْخَاتِمَةِ وَأَعُوذُ بِكَ مِنْ سُوءِ الْخَاتِمَةِ، اللَّهُمَّ اجْعَلْ خَيْرَ أَعْمَالِنَا خَوَاتِمَهَا وَخَيْرَ أَيَّامِنَا يَوْمَ نَلْقَاكَ
Allahumma inni as'aluka husnal-khatimah wa a'udhu bika min su'il-khatimah. Allahummaj'al khayra a'malina khawatimaha wa khayra ayyamina yawma nalqak
O Allah, I ask You for a good ending and I seek refuge in You from a bad ending. O Allah, make the best of our deeds their conclusions and the best of our days the day we meet You.
Husn al-khatimah (a good ending) means dying while in a state of faith and good deeds — in prayer, while fasting, on a Friday, making dhikr, or during any righteous act. Its opposite, su' al-khatimah (bad ending), was what the Prophet ﷺ feared most for his ummah. He said: "Actions are judged by their endings" (Sahih al-Bukhari 6493). A person could worship for sixty years but falter at the end. This expanded du'a asks for both sides: a good ending and protection from a bad one. It then adds the beautiful request that your final deeds be your finest and your last day be your greatest.
Related Du'as
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عَذَابِ الْقَبْرِ وَمِنْ عَذَابِ جَهَنَّمَ وَمِنْ فِتْنَةِ الْمَحْيَا وَالْمَمَاتِ وَمِنْ شَرِّ فِتْنَةِ الْمَسِيحِ الدَّجَّالِ
O Allah, I seek refuge in You from the punishment of the grave, from the torment of the Fire, from the trials of life and death, and from the evil of the trial of the False Messiah.
Sahihاللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الذُّنُوبِ وَالْخَطَايَا كَمَا يُنَقَّى الثَّوْبُ الْأَبْيَضُ مِنَ الدَّنَسِ وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ وَأَهْلًا خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأَدْخِلْهُ الْجَنَّةَ وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ وَعَذَابِ النَّارِ
O Allah, forgive him, have mercy on him, grant him well-being, pardon him, honor his reception, expand his entrance, and wash him with water, snow, and hail. Cleanse him of sins and wrongdoings as a white garment is cleansed of filth. Grant him an abode better than his home, a family better than his family, and a spouse better than his spouse. Admit him to Paradise and protect him from the punishment of the grave and the torment of the Fire.
Sahihاللَّهُمَّ لَا تَحْرِمْنَا أَجْرَهُ وَلَا تُضِلَّنَا بَعْدَهُ
O Allah, do not deprive us of his reward, and do not lead us astray after him.
Sahihاللَّهُمَّ اجْعَلْ خَيْرَ عُمُرِي آخِرَهُ وَخَيْرَ عَمَلِي خَوَاتِمَهُ وَخَيْرَ أَيَّامِي يَوْمَ أَلْقَاكَ
O Allah, make the best of my life its last part, the best of my deeds their conclusions, and the best of my days the day I meet You.
Hasan