It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that he said: "I was ill when the Messenger of Allah (peace and blessings be upon him) passed by me while I was supplicating: 'Allahumma in kana ajali qad hadara fa-arihni, wa in kana muta'akhkhiran farfa'ni, wa in kana bala'an fa-sabbirni' (O Allah, if my appointed time has come, then grant me relief; if it is still delayed, then grant me recovery; and if this is a trial, then grant me patience). The Messenger of Allah (peace and blessings be upon him) asked: 'What did you say?' He repeated his words, and he (peace and blessings be upon him) tapped him lightly with his blessed foot (to draw his attention) and supplicated: 'Allahumma 'afihi, Allahumma ishfihi' (O Allah, grant him well-being; O Allah, cure him). Sayyiduna Ali (may Allah be pleased with him) said: After that I never again felt the pain of that illness."
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 409
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده حسن . » «قال سعيد بن محمد السناري: ضعيف: مضى تخريجه [برقم 284]» «أخرجه سنن الترمذي برقم: 3564، وأخرجه مسند أحمد برقم: 843، وأخرجه المستدرك على الصحيحين برقم: 4297، وأخرجه الأحاديث المختارة برقم: 601، مسند ابویعلیٰ ترقیم الاثری: 404»