Hadith 12503

(حديث قدسي) حَدَّثَنَا حَسَنٌ ، وَعَفَّانُ ، قَالَا : حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، عَنْ سِنَانِ بْنِ رَبِيعَةَ ، عَنْ أَنَسٍ قَالَ عَفَّانُ فِي حَدِيثِهِ ، قَالَ : أَخْبَرَنَا أَبُو رَبِيعَةَ ، قَالَ : سَمِعْتُ أَنَسَ بْنَ مَالِكٍ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " إِذَا ابْتَلَى اللَّهُ الْعَبْدَ الْمُسْلِمَ بِبَلَاءٍ فِي جَسَدِهِ ، قَالَ اللَّهُ : اكْتُبْ لَهُ صَالِحَ عَمَلِهِ الَّذِي كَانَ يَعْمَلُهُ ، فَإِنْ شَفَاهُ ، غَسَلَهُ وَطَهَّرَهُ ، وَإِنْ قَبَضَهُ ، غَفَرَ لَهُ وَرَحِمَهُ " .
It is narrated from Hazrat Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: When Allah Almighty afflicts a Muslim servant with a physical illness, He commands the angels to continue recording the reward of all the good deeds that he used to do. Then, if He grants him recovery, Allah has cleansed and purified him, and if He calls him back to Himself, He forgives him and has mercy on him.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 12503
Hadith Grading حکم دارالسلام: صحيح لغيره، وهذا إسناد حسن