اللَّهُمَّ إِنْ كَانَ مُحْسِنًا فَزِدْ فِي إِحْسَانِهِ وَإِنْ كَانَ مُسِيئًا فَتَجَاوَزْ عَنْ سَيِّئَاتِهِ
Allahumma in kana muhsinan fazid fi ihsanihi wa in kana musi'an fatajawaz 'an sayyi'atih
O Allah, if he was a doer of good, then increase his good deeds, and if he was a wrongdoer, then overlook his misdeeds.
A janazah du'a that covers both possibilities without judgment. You do not know the deceased's true state — only Allah does. If they were good, ask for more. If they were bad, ask for forgiveness. The beauty is in the humility: you do not declare them righteous or sinful. You present both scenarios and let Allah's knowledge and mercy determine the outcome.
Related Du'as
اللَّهُمَّ إِنِّي أَسْأَلُكَ حُسْنَ الْخَاتِمَةِ وَأَعُوذُ بِكَ مِنْ سُوءِ الْخَاتِمَةِ، اللَّهُمَّ اجْعَلْ خَيْرَ أَعْمَالِنَا خَوَاتِمَهَا وَخَيْرَ أَيَّامِنَا يَوْمَ نَلْقَاكَ
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.
Hasanاللَّهُمَّ اغْفِرْ لَهُ وَارْفَعْ دَرَجَتَهُ فِي الْمَهْدِيِّينَ وَافْسَحْ لَهُ فِي قَبْرِهِ وَنَوِّرْ لَهُ فِيهِ
O Allah, forgive him, raise his rank among the guided, make his grave spacious, and illuminate it for him.
Sahihاللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عَذَابِ الْقَبْرِ وَمِنْ عَذَابِ جَهَنَّمَ وَمِنْ فِتْنَةِ الْمَحْيَا وَالْمَمَاتِ وَمِنْ شَرِّ فِتْنَةِ الْمَسِيحِ الدَّجَّالِ
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, 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