Every kind of distress, even a thorn prick, expiates sins
The Prophet ﷺ said, "No fatigue, nor disease, nor sorrow, nor sadness, nor hurt, nor distress befalls a Muslim, even if it were the prick from a thorn, except that Allah expiates some of his sins for that."
عَنِ النَّبِيِّ ﷺ قَالَ: «مَا يُصِيبُ الْمُسْلِمَ مِنْ نَصَبٍ، وَلاَ وَصَبٍ، وَلاَ هَمٍّ، وَلاَ حُزْنٍ، وَلاَ أَذًى، وَلاَ غَمٍّ، حَتَّى الشَّوْكَةِ يُشَاكُهَا، إِلاَّ كَفَّرَ اللَّهُ بِهَا مِنْ خَطَايَاهُ۔»