Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
hakim:1285Abū ʿAbdullāh Muḥammad b. Yaʿqūb al-Ḥāfiẓ > Muḥammad b. ʿAbd al-Wahhāb > Yaʿlá b. ʿUbayd > Ṭalḥah b. Yaḥyá > Ibn Buraydah > Muʿāwiyah > Rasūl

[Machine] I heard the Messenger of Allah ﷺ saying, "There is nothing that afflicts a believer in his body, except that it expiates from his sins."  

الحاكم:١٢٨٥حَدَّثَنَا أَبُو عَبْدِ اللَّهِ مُحَمَّدُ بْنُ يَعْقُوبَ الْحَافِظُ ثنا مُحَمَّدُ بْنُ عَبْدِ الْوَهَّابِ أَنْبَأَ يَعْلَى بْنُ عُبَيْدٍ ثنا طَلْحَةُ بْنُ يَحْيَى عَنِ ابْنِ بُرَيْدَةَ عَنْ مُعَاوِيَةَ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ «مَا مِنْ شَيْءٍ يُصِيبُ الْمُؤْمِنَ فِي جَسَدِهِ يُؤْذِيهِ إِلَّا كَفَّرَ عَنْهُ مِنْ سَيِّئَاتِهِ»  

هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ

See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:16899Yaʿlá b. ʿUbayd > Ṭalḥah / Ibn Yaḥyá > Abū Burdah > Muʿāwiyah

[Machine] I heard the Messenger of Allah ﷺ saying, "There is nothing that afflicts a believer in his body and causes harm to him except that Allah expiates his sins because of it."  

أحمد:١٦٨٩٩حَدَّثَنَا يَعْلَى بْنُ عُبَيْدٍ قَالَ حَدَّثَنَا طَلْحَةُ يَعْنِي ابْنَ يَحْيَى عَنْ أَبِي بُرْدَةَ عَنْ مُعَاوِيَةَ قَالَ

سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ مَا مِنْ شَيْءٍ يُصِيبُ الْمُؤْمِنَ فِي جَسَدِهِ يُؤْذِيهِ إِلَّا كَفَّرَ اللهُ عَنْهُ بِهِ مِنْ سَيِّئَاتِهِ