حَدَّثَنَا عَبْدُ الْأَعْلَى بْنُ حَمَّادٍ النَّرْسِيُّ ، حَدَّثَنَا حَمَّادٌ ، عَنْ سِنَانٍ أَبِي رَبِيعَةَ ، عَنْ أَنَسٍ ، أَنَّ رَسُولَ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - قَالَ : إِذَا ابْتَلَى اللهُ الْعَبْدَ بِبَلَاءٍ فِي جَسَدِهِ ، قَالَ لِلْمَلَكِ : اكْتُبْ لَهُ صَالِحَ عَمَلِهِ الَّذِي كَانَ يَعْمَلُ ، فَإِنْ شَفَاهُ غَسَلَهُ وَطَهَّرَهُ ، وَإِنْ قَبَضَهُ غَفَرَ لَهُ وَرَحِمَهُ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When Allah Almighty afflicts a servant with a trial in his body, He commands the angel: 'Keep writing (in his record) all the good deeds that he used to do (when he was healthy).' Then if Allah grants him cure, He washes him clean (of sins) and purifies him; and if He takes his soul, He forgives him and sends down His mercy upon him."