Sahih al-Bukhari Book 75, Hadith 2
The Prophet (ﷺ) said, "No fatigue, nor disease, nor sorrow, nor sadness, nor hurt, nor distress befalls a
Muslim, even if it were the prick he receives from a thorn, but that Allah expiates some of his sins for
that."
(the wife of the Prophet) Allah's Messenger (ﷺ) 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."
The Prophet (ﷺ) said, "The example of a believer is that of a fresh tender plant, which the wind bends lt sometimes and some other time it makes it straight. And the example of a hypocrite is that of a pine tree which keeps straight till once it is uprooted suddenly.