637
Musnad AhmedIt 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.
Reference: Musnad Ahmad 637
Arabic/English book : Book 5, Hadith 637
Arabic/English book : Book 5, Hadith 637