Ayesha reported,

The Prophet ﷺ used to seek refuge with these words, "Remove the affliction, Lord of mankind, and grant healing, for You are the Healer. There is no cure except Your cure, a cure that leaves no illness behind."When the Prophet ﷺ grew gravely ill during the sickness in which he died, I took his hand and began to wipe him with it while reciting these words. He drew his hand away from mine and said, "O Allah, forgive me and join me with the highest company."She said, these were the last words I heard from him ﷺ.

Ibn Majah 1619

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية عن الأعمش عن مسلم عن مسروق

عن عائشة قالت

كان النبي ﷺ يتعوذ بهؤلاء الكلمات أذهب الباس رب الناس واشف أنت الشافي لا شفاء إلا شفاؤك شفاء لا يغادر سقما فلما ثقل النبي ﷺ في مرضه الذي مات فيه أخذت بيده فجعلت أمسحه وأقولها فنزع يده من يدي ثم قال اللهم اغفر لي وألحقني بالرفيق الأعلى قالت فكان هذا آخر ما سمعت من كلامه ﷺ

ابن ماجه 1619صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Illness of the Messenger of Allah ﷺ
Numbering
Darussalam 1619
Ibn Majah 1619