(the wife of the Prophet) Messenger of Allah ﷺ said, "No calamity befalls a Muslim but that Allah expiates some of his sins because of it, even though it were the prick he receives from a thorn." (Using translation from Bukhārī 5640)
قَالَ رَسُولُ اللهِ ﷺ مَا مِنْ مُصِيبَةٍ تُصِيبُ الْمُسْلِمَ إِلَّا كَفَّرَ اللهُ بِهَا عَنْهُ حَتَّى الشَّوْكَةِ يُشَاكُهَا