أَخْبَرَنَا أَبُو طَاهِرٍ الْفَقِيهُ وَأَبُو مُحَمَّدٍ الْحَسَنُ بْنُ عَلِيِّ بْنِ الْمُؤَمَّلِ قَالَا : نَا أَبُو عُثْمَانَ عَمْرُو بْنُ عَبْدِ اللَّهِ الْبَصْرِيُّ نَا أَبُو أَحْمَدَ مُحَمَّدُ بْنُ عَبْدِ الْوَهَّابِ أَنَا خَالِدُ بْنُ مَخْلَدٍ نَا مُحَمَّدُ بْنُ جَعْفَرِ بْنِ أَبِي كَثِيرٍ حَدَّثَنِي سَعْدُ بْنُ إِسْحَاقَ بْنِ كَعْبِ بْنِ عُجْرَةَ عَنْ زَيْنَبَ بِنْتِ كَعْبٍ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ : "مَا مِنْ شَيْءٍ يُصِيبُهُ الْمُؤْمِنُ فِي جَسَدِهِ إِلَّا كَفَّرَ اللَّهُ عَنْهُ بِهِ مِنَ الذُّنُوبِ "
فَقَالَ أُبَيُّ بْنُ كَعْبٍ : اللَّهُمَّ إِنِّي أَسْأَلُكَ أَنْ لَا تَزَالَ الْحُمَّى مُضَارِعَةً لَجَسَدِ أُبَيِّ بْنِ كَعْبٍ حَتَّى يَلْقَاكَ لَا تَمْنَعُهُ مِنْ صَلَاةٍ وَلَا صِيَامٍ وَلَا حَجٍّ وَلَا عُمْرَةٍ وَلَا جِهَادٍ فِي سَبِيلِكَ فَارْتَكَبَتْهُ الْحُمَّى مَكَانَهُ فَلَمْ تُفَارِقْهُ حَتَّى مَاتَ وَكَانَ فِي ذَلِكَ يَشْهَدُ الصَّلَاةَ وَيَصُومُ وَيَحُجُّ وَيَعْتَمِرُ وَيَغْزُو .
Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him) that he (peace and blessings be upon him) said: "Whatever hardship afflicts the believer in his body, Allah Almighty expiates his sins because of it."
Then Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) supplicated: "O Allah, I ask You that fever remain attached to the body of Ubayy bin Ka'b until he meets You, (but) that it not keep him from prayer, nor fasting, nor Hajj, nor Umrah, nor jihad in Your path." So the fever took hold of him at that very moment and did not leave him until he died, and in that state he would attend the prayer, fast, perform Hajj, perform Umrah and take part in jihad.