Hadith 3106
Narrated Abdullah ibn Abbas: The Prophet ﷺ said: If anyone visits a sick whose time (of death) has not come, and says with him seven times: I ask Allah, the Mighty, the Lord of the mighty Throne, to cure you, Allah will cure him from that disease.
Hadith 3107
Narrated Abdullah ibn Amr ibn al-As: The Prophet ﷺ said: When a man comes to visit a sick person, he should say: O Allah, cure Thy servant, who may then wreak havoc on an enemy for your sake, or walk at a funeral for your sake. Abu Dawud said: Ibn As-Sarh (one of the narrators) said: "Ilas-salat (To the Salat)".