Hadithcore
Riyad as-Salihin, 911

`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.'' <b>[Al-Bukhari and Muslim]</b>.

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

References1 variant
In-Book Reference
Book 6, Hadith 18
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) It is recommended to be persistent in supplicating Allah and asking Him for forgiveness and mercy at the time of death. This opens the door to optimism and hope for Allah’s mercy.<br> 2) It encourages us to implore Allah Almighty to join us with the exalted companions, where the prophets, the affirmers of the truth, the martyrs, and the pious will be.
Related hadiths2
Compare isnād across 2 related chains →