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 3517

Sahih

عن عائشة

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

الأعظمي 3517صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Dying person
Section
Prophet's ﷺ saying, "And let me join the highest companion"
Numbering
Jami al-Kamil 3517 (2nd edition)
Azami 3517