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.
bayhaqi:6539[Chain 1] Abū al-Ḥusayn b. Bishrān> Ismāʿīl b. Muḥammad al-Ṣaffār > Aḥmad b. Manṣūr al-Ramādī > ʿAbd al-Razzāq > Maʿmar > al-Zuhrī [Chain 2] Abū Zakariyyā b. Abū Isḥāq al-Muzakkī And ʾAbū Bakr b. al-Ḥasan al-Qāḍī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Baḥr b. Naṣr > Ibn Wahb > Yūnus > Ibn Shihāb > ʿUrwah > ʿĀʾishah

[Machine] The Messenger of Allah ﷺ said: There is no affliction that befalls a believer except that it expiates his sins, even if it is just a thorn that pricks him. This is from the narration of Yunus ibn Yazid (6539) and in the narration of Ma'mar, he said: The Messenger of Allah ﷺ said: There is no sickness or pain that afflicts a believer except that it becomes an expiation for his sins, even if it is just a thorn that pricks him or a calamity that befalls him.  

البيهقي:٦٥٣٩وَأَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ بِبَغْدَادَ أنبأ إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ ثنا أَحْمَدُ بْنُ مَنْصُورٍ الرَّمَادِيُّ ثنا عَبْدُ الرَّزَّاقِ أنبأ مَعْمَرٌ عَنِ الزُّهْرِيِّ ح وَأَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ الْمُزَكِّي وَأَبُو بَكْرِ بْنُ الْحَسَنِ الْقَاضِي قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا بَحْرُ بْنُ نَصْرٍ ثنا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ عَنْ عُرْوَةَ عَنْ عَائِشَةَ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَا مِنْ مُصِيبَةٍ يُصَابُ بِهَا الْمُؤْمِنُ إِلَّا كُفِّرَ بِهَا عَنْهُ حَتَّى الشَّوْكَةِ يُشَاكُهَا لَفْظُ حَدِيثِ يُونُسَ بْنِ يَزِيدَ 6539 وَفِي رِوَايَةِ مَعْمَرٍ قَالَ قَالَ رَسُولُ اللهِ ﷺ مَا مِنْ مَرِضٍ أَوْ وَجَعٍ يُصِيبُ الْمُؤْمِنَ إِلَّا كَانَ كَفَّارَةً لِذُنُوبِهِ حَتَّى الشَّوْكَةِ يُشَاكُهَا أَوِ النَّكْبَةِ يُنْكَبُهَا  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي الطَّاهِرِ عَنِ ابْنِ وَهْبٍ وَأَخْرَجَهُ الْبُخَارِيُّ مِنْ وَجْهٍ آخَرَ عَنِ الزُّهْرِيِّ