Musnad Ahmad 637
Grading supplied with this record: lts isnad is Hasan]
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:
The Messenger of Allah (ﷺ) passed by me when I was in pain and I was saying: O Allah, if my time has come then grant me relief, if it has not yet come then raise me in status, and if this is a trial then grant me patience. He said: “What did you say?” I repeated it to him, then he nudged me with his foot and said: "What did you say?" I repeated it to him and he said: “O Allah, grant him well being or heal him.” And I never suffered that pain again after that.
Full reference and source
Musnad Ahmad 637 Arabic/English book : Book 5, Hadith 637
View source on Sunnah.com (opens in a new tab)