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. (Using translation from Abū Dāʾūd 3106)
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ عَادَ مَرِيضًا لَمْ يَحْضُرْ أَجَلُهُ فَقَالَ عِنْدَهُ سَبْعَ مَرَّاتٍ أَسْأَلُ اللَّهَ الْعَظِيمَ رَبَّ الْعَرْشِ الْعَظِيمِ أَنْ يَشْفِيَكَ وَيُعَافِيَكَ إِلَّا عَافَاهُ اللَّهُ مِنْ ذَلِكَ الْمَرَضِ