Jami` at-Tirmidhi Book 48, Hadith 195
“I was ill and the Messenger of Allah (ﷺ) passed by me while I was saying: ‘O Allah, if my term has come, then give me relief, and if it is coming later, then make my life more bountiful, and if it is a trial then make me patient (Allāhumma, in kāna ajalī qad ḥaḍara fa ariḥnī, wa in kāna muta’akh-khiran fa arfighnī, wa in kāna balā’an fa ṣabbirnī).’ So the Messenger of Allah (ﷺ) said: ‘What did you say?’” He said: “So he repeated to him what he said.” He (one of the narrators) said: So he struck him with his foot and said: “O Allah, grant him health (Allāhumma `āfihi)” – or – “heal him (ishfihi).” – Shu`ba is the one who doubted. He said: “So I did not suffer from my ailment again.”
that a Mukatib came to him and said: “Indeed I am not capable of my Kitabah so aid me.” He said: “Should I not teach you words that the Messenger of Allah (ﷺ) taught me? If you had a debt upon you similar to the mountain of Sir, Allah would fulfill it for you. He said: ‘Say: O Allah, suffice me with Your lawful against Your prohibited, and make me independent of all those besides You (Allāhummakfinī biḥalālika `an ḥarāmika, wa aghninī bi faḍlika `amman siwāka).’”
“Whenever the Prophet (ﷺ) would visit an ill person, he would said:‘ adh-hibil-ba’sa rabban-nās, washfi antash-shāfi, lā shifā’a illā shifā’uka shifā’an lā yughādiru saqama).’”