Sunan Ibn Majah, Book 6, Hadith 1687 (In-Book)

It was narrated that ‘Aishah said: “The Prophet used to seek refuge using the following words: ‘Adhhibil-ba’s, Rabbin-nas, washfi Antash-shafi, la shifa’a illa shifa’uka, shifa’an la yughadiru saqaman (Take away the affliction, O Lord of mankind, and grant healing, for You are the Healer and there is no healing that leaves no sickness).’ When the Prophet fell sick with the sickness that would be his last, I took his hand and wiped it over his body and recited these words. He withdrew his hand from mine and said: ‘O Allah, forgive me and let me meet the exalted companions (i.e., those who occupy high positions in Paradise).’ Those were the last words of his that I heard.”

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ مُسْلِمٍ، عَنْ مَسْرُوقٍ، عَنْ عَائِشَةَ، قَالَتْ كَانَ النَّبِيُّ ـ صلى الله عليه وسلم ـ يَتَعَوَّذُ بِهَؤُلاَءِ الْكَلِمَاتِ ‏"‏ أَذْهِبِ الْبَاسَ رَبَّ النَّاسِ ‏.‏ وَاشْفِ أَنْتَ الشَّافِي لاَ شِفَاءَ إِلاَّ شِفَاؤُكَ شِفَاءً لاَ يُغَادِرُ سَقَمًا ‏"‏ ‏.‏ فَلَمَّا ثَقُلَ النَّبِيُّ ـ صلى الله عليه وسلم ـ فِي مَرَضِهِ الَّذِي مَاتَ فِيهِ أَخَذْتُ بِيَدِهِ فَجَعَلْتُ أَمْسَحُهُ وَأَقُولُهَا ‏.‏ فَنَزَعَ يَدَهُ مِنْ يَدِي ثُمَّ قَالَ ‏"‏ اللَّهُمَّ اغْفِرْ لِي وَأَلْحِقْنِي بِالرَّفِيقِ الأَعْلَى ‏"‏ ‏.‏ قَالَتْ فَكَانَ هَذَا آخِرَ مَا سَمِعْتُ مِنْ كَلاَمِهِ ـ صلى الله عليه وسلم ـ ‏.‏

sunnah.com