Atonement of Sins
Question :
Are sins atoned for through sickness?
Answer:
Yes, they are atoned for; the Messenger of Allah ﷺ said:
"No Muslim suffers from grief, fatigue, illness, harm, or even the prick of a thorn-except that Allah covers some of his sins because of that."
And Allah is the Grantor of success.
Source:
Ibn Baz
Fatawa Islamiyah, Vol. 8 Page 392