O Allah, make our end good in all affairs and save us from the disgrace of this — Daily Supplications
اللَّهُمَّ أَحْسِنْ عَاقِبَتَنَا فِي الْأُمُورِ كُلِّهَا وَأَجِرْنَا مِنْ خِزْيِ الدُّنْيَا وَعَذَابِ الْآخِرَةِ
Transliteration: Allaahumma ahsin 'aaqibatanaa fil-umoori kullihaa wa ajirnaa min khizyid-dunyaa wa 'adhaabil-aakhirah
Translation: O Allah, make our end good in all affairs and save us from the disgrace of this world and the punishment of the Hereafter.
Reference: Ahmad 4:181