It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When Allah Almighty afflicts a Muslim with some pain or illness in his body, He commands the angel: Keep writing for him the reward of all the good deeds that he used to do regularly (when he was healthy). Then if Allah Almighty grants him cure, He washes him clean of sins and purifies him; and if He takes his soul, He forgives him and has mercy on him."
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 4233
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده حسن . » «قال سعيد بن محمد السناري: صحيح» «أخرجه مسند أحمد برقم: 13301، وأخرجه شرح السنة برقم: 1430، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 3845/1، مسند ابویعلیٰ ترقیم الاثری: 4218»