Imam Al-Nawawi’s Riyad-us-Saliheen
Supplication when one is disappointed about his Life
911. `Aishah (May Allah be pleased with her) reported: While the Prophet (sallallaahu alayhi wa sallam) was reclining against me (during his last illness) I heard him saying: “Allahumma-ghfir li, warhamni, wa alhiqni bir Rafiqil-A`la (O Allah, forgive me, bestow Your Mercy on me and let me join with the exalted companions.”
[Al-Bukhari and Muslim].
912. `Aishah (May Allah be pleased with her) reported: I saw the Messenger of Allah (sallallaahu alayhi wa sallam) when he was at the point of death. He had a drinking bowl with water in it. He would dip his hand into the bowl, and wipe his face. Then he would supplicate, “O Allah! Help me over pangs and agony of death.”