Jami` at-Tirmidhi #3496
Chapters on Supplication 48:127
Aishah said:
“I heard the Messenger of Allah (ﷺ) saying at his death: ‘O Allah, forgive me and have mercy on me, and join me with the Highest Company (Allāhummaghfirlī warḥamnī wa alḥiqnī bir-rafīqil a`lā).’”