[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 وَفِي رِوَايَةِ مَعْمَرٍ قَالَ قَالَ رَسُولُ اللهِ ﷺ مَا مِنْ مَرِضٍ أَوْ وَجَعٍ يُصِيبُ الْمُؤْمِنَ إِلَّا كَانَ كَفَّارَةً لِذُنُوبِهِ حَتَّى الشَّوْكَةِ يُشَاكُهَا أَوِ النَّكْبَةِ يُنْكَبُهَا