Any Muslim servant who visits a sick person whose prescribed moment of death has not arrived and supplicates seven times:
أَسْأَلُ اللّٰهَ الْعَظِيْمَ رَبَّ الْعَرْشِ الْعَظِيْمِ أَنْ يَشْفِيَكَ
I ask Almighty Allah, Lord of the Magnificent Throne, to make you well.
As'alullaahal-'Adheema Rabbal-'Arshil-'Adheemi 'an yashfiyaka.
…then perhaps, for this reason, Allah will cure the person (if not near Death)