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: "Indeed, when Allah, Glorified and Exalted, afflicts a Muslim with a bodily illness, He commands the (assigned) angel: Keep recording (in his record of deeds) all the good deeds that he used to do in his state of health. Then, if Allah grants him healing, He washes him of sins and makes him pure and clean, and if He takes his soul, He forgives him and sends down His mercy upon him." Imam Ahmad bin Mani', al-Harith bin Muhammad bin Abi Usamah, Imam Abu Ya'la al-Mawsili and Imam Ahmad bin Hanbal also narrated this hadith through various chains; in the narration of al-Harith the words 'Uktub ahsana 'amalih' (Record his best deeds) are reported, while in one chain of Imam Abu Ya'la the narrator's name is given as 'Sinan Abu Rabi'ah', and in the narration of Imam Ahmad too, through Affan and al-Hasan, this same meaning is supported.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الطب / 3845
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده حسن
Hadith Takhrij«سنان بن ربيعة أبو ربيعة: صدوق فيه لين (من الحفظ)؛ عفان وحماد بن سلمة ثقتان» «(3845/1) أخرجه مسند أحمد برقم: 13301، وأخرجه شرح السنة برقم: 1430» «(3845/2) أخرجه مسند أحمد برقم: 13089، 13301، وأخرجه شرح مشكل الآثار برقم: 2213، وأخرجه شرح السنة برقم: 1430»