Musnad Ahmad 1057
Grading supplied with this record: Hasan (Darussalam)]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that ‘Ali (رضي الله عنه) said:
l fell sick and the Prophet (ﷺ) came to me when I was saying: O Allah, if my time has come then grant me relief; if it has not yet come then heal me or grant me well being, and if this is a trial then grant me patience. He said: "What did you say?" I repeated it to him, then he touched me with his hand and said: "O Allah, heal him” or “grant him well being.” And I never suffered that sickness again after that.
Full reference and source
Musnad Ahmad 1057 Arabic/English book : Book 5, Hadith 1057
View source on Sunnah.com (opens in a new tab)