أَخْبَرَنَا أَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ الْقَاضِي ، أَخْبَرَنَا أَبُو جَعْفَرِ بْنِ دُحَيْمٍ ، حَدَّثَنَا مُحَمَّدُ بْنُ الْحُسَيْنِ بْنِ أَبِي الْحُسَيْنِ ، حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، حَدَّثَنَا عَفَّانُ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، حَدَّثَنَا أَبُو رَبِيعَةَ ، قَالَ : سَمِعْتُ أَنَسًا يَقُولُ : إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ : "إِنَّ اللَّهَ تَعَالَى إِذَا ابْتَلَى الْمُسْلِمَ بِبَلَاءٍ فِي جَسَدِهِ قَالَ لِلْمَلَكِ : اكْتُبْ لَهُ صَالِحَ عَمَلِهِ الَّذِي كَانَ يَعْمَلُ ، فَإِنَّ شَفَاهُ غَسَلَهُ وَطَهَّرَهُ ، وَإِنْ قَبَضَهُ غَفَرَ لَهُ وَرَحِمَهُ " .
كَذَا قَالَ فِي إِسْنَادِهِ : سَمِعْتُ أَنَسًا .
Sayyiduna Anas (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "When Allah Almighty tests a Muslim with some illness or trouble in his body, He says to the angel: 'Keep writing for him the good deeds he used to do.' Then, if Allah cures him, He washes him (of sins) and purifies him; and if He takes his life, He forgives him and has mercy on him."
(Imam al-Bayhaqi, may Allah have mercy on him, said:) This narrator said it this way in his chain: "I heard Anas (may Allah be pleased with him)."