I heard the Messenger of Allah ﷺ say at the time of his death, "O Allah, forgive me, have mercy on me, and join me with the highest companions."
حدثنا هارون حدثنا عبدة عن هشام بن عروة عن عباد بن عبد الله بن الزبير
سمعت رسول الله ﷺ يقول عند وفاته اللهم اغفر لي وارحمني وألحقني بالرفيق الأعلى
Agreed upon by Bukhari and Muslim. It was also narrated by Muslim in "The Book of the Virtues of the Companions," chapter "On the Virtues of Ayesha, Mother of the Believers" , hadith no. 2444, from the hadith of Abdah bin Sulayman, and by Bukhari, hadith no. 5674, from the hadith of Hisham bin Urwa, with the same wording.