Hadith 1560

وَعَنْ أَنَسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: إِذَا ابْتُلِيَ الْمُسْلِمُ بِبَلَاءٍ فِي جَسَدِهِ قِيلَ لِلْمَلَكِ: اكْتُبْ لَهُ صَالِحَ عَمَلِهِ الَّذِي كَانَ يَعْمَلُ فَإِنْ شَفَاهُ غَسَّلَهُ وَطَهَّرَهُ وَإِنْ قَبَضَهُ غَفَرَ لَهُ وَرَحِمَهُ . رَوَاهُمَا فِي شرح السّنة
Anas reported God’s messenger as saying, “When a Muslim is afflicted with some trouble in his body the angel is told to record for him his good deeds which he was accustomed to do. Then if God cures him He washes and purifies him [from sins], and if He takes him in death He forgives him and shows mercy to him.” Transmitted in Sharh as-sunna.
Hadith Reference Mishkat al-Masabih / The Book of Funerals / Hadith: 1560
Hadith Grading الألبانی: حسن  |  زبیر علی زئی: إسناده حسن
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده حسن، رواه البغوي في شرح السنة (241/5 ح 1430) [و أحمد 3/ 148]»