The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
Ṣaḥīḥ Muslim 6565
مَا مِنْ مُصِيبَةٍ يُصَابُ بِهَا الْمُسْلِمُ إِلاَّ كُفِّرَ بِهَا عَنْهُ حَتَّى الشَّوْكَةِ يُشَاكُهَا
mā min muṣībatin yuṣābu bihā al-muslimu illā kuffira bihā ʿanhu ḥattā ash-shawkah yushākuhā
Transliteration generated from the Arabic vowel marks
The full narration
A'isha reported:Allah's Messenger (ﷺ) said: There is no trouble that comes to a believer except that it obliterates from his sins, even if it is the pricking of a thorn
Source
Ṣaḥīḥ Muslim · 6565
Ṣaḥīḥ