When the sick have renounced all hope of life

O Allah, forgive me and have mercy upon me, and join me with the highest companions (in Paradise).

Reference:Al-Bukhari7/10, Muslim 4/1893.Hisnul Muslim 150

أللّهُـمَّ اغْفِـرْ لي وَارْحَمْـني وَأَلْحِقْـني بِالرَّفـيقِ الأّعْلـى

Transliteration

Allāhumma’ghfir lī warḥamnīwa alḥiqnī bir-rafīqi ‘l-'A`alā.

Translation

O Allah, forgive me and have mercy upon me, and join me with the highest companions (in Paradise).