Riyad as-Salihin, Book 7, Hadith 911 (In-Book)

`Aishah (May Allah be pleased with her) reported: While the Prophet 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].

عن عائشة رضي الله عنها قالت‏:‏ سمعت النبي صلى الله عليه وسلم الله عليه وسلم الله عليه وسلم وهو مستند إلي يقول‏:‏ اللهم اغفر لي وارحمني وألحقني بالرفيق الأعلى‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com