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. It was narrated that ʿAli ؓ said: I was ill and the Messenger of Allah ﷺ passed by me... And he mentioned a similar report, except that he said: “O Allah, grant him well being; O Allah, heal him.”
مَرَّ بِي رَسُولُ اللهِ ﷺ وَأَنَا وَجِعٌ وَأَنَا أَقُولُ اللهُمَّ إِنْ كَانَ أَجَلِي قَدْ حَضَرَ فَأَرِحْنِي وَإِنْ كَانَ آجِلًا فَارْفَعْنِي وَإِنْ كَانَ بَلاءً فَصَبِّرْنِي قَالَ مَا قُلْتَ؟ فَأَعَدْتُ عَلَيْهِ فَضَرَبَنِي بِرِجْلِهِ فَقَالَ مَاقُلْتَ؟ قَالَ فَأَعَدْتُ عَلَيْهِ فَقَالَ اللهُمَّ عَافِهِ أَوِ اشْفِهِ قَالَ فَمَا اشْتَكَيْتُ ذَلِكَ الْوَجَعَ بَعْدُ