"Shall I not treat you with the healing prayer of the Messenger of Allah ﷺ?"He replied, "Yes, please."He said, "Allah, Lord of mankind, remover of affliction, grant healing. You are the Healer. There is no healer but You. Grant a cure that leaves behind no illness."
حدثنا قتيبة حدثنا عبد الوارث بن سعيد عن عبد العزيز بن صهيب قال دخلت أنا وثابت البناني على أنس بن مالك فقال ثابت يا أبا حمزة اشتكيت
أفلا أرقيك برقية رسول الله ﷺ قال بلى قال اللهم رب الناس مذهب الباس اشف أنت الشافي لا شافي إلا أنت شفاء لا يغادر سقما
Bukhari also narrated it in the Book of Medicine, chapter on the Prophet's ruqyah, hadith no. 5742, from the hadith of Abdul-Warith with the same wording. There is also a report on this subject from Anas, meaning this same hadith, and see Musnad Ahmad, 3/267, and from Ayesha [Muslim, hadith no. 2185].