Ayesha reported,

Aishah related that she heard the Messenger of Allah ﷺ say, before he died, while he was leaning against her chest. She listened closely to him as he said, "O Allah, forgive me, have mercy on me, and join me with the highest companions."

Azami 11097

Sahih

عن عائشة

أنها أخبرت أنها سمعت رسول الله ﷺ يقول قبل أن يموت وهو مستند إلى صدرها، وأصغت إليه وهو يقول: اللهم اغفر لي، وارحمني، وألحقني بالرفيق الأعلى.

الأعظمي 11097صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for illness and funerals, and what relates to them
Section
Supplication of the sick person when he senses his death is near
Numbering
Jami al-Kamil 11097 (2nd edition)
Azami 11097