The Prophet ﷺ said, "There is no Muslim servant who visits a sick person whose appointed time has not yet come and says seven times, 'I ask Allah the Magnificent, Lord of the magnificent Throne, to cure you,' except that he will be cured."
حدثنا محمد بن المثنى حدثنا محمد بن جعفر حدثنا شعبة عن يزيد بن خالد قال سمعت المنهال بن عمرو يحدث عن سعيد بن جبير
عن النبي ﷺ أنه قال ما من عبد مسلم يعود مريضا لم يحضر أجله فيقول سبع مرات أسأل الله العظيم رب العرش العظيم أن يشفيك إلا عوفي
[Sahih]. Abu Dawud narrated it in the chapters on funerals, in the chapter on the supplication for the sick person when visiting them, hadith 3106, from the hadith of Shubah, with the same wording. Ibn Hibban graded it sahih, hadith 714, as did Hakim, 1/342, 343, 4/213, along with Dhahabi and others. Yazid was corroborated by Abdu Rabbihi bin Saeed and others, and Minhal was deemed reliable by the majority.