Abu Hurairah reported,

Abu Saeed reported that the Prophet ﷺ said, "No fatigue, illness, anxiety, sorrow, harm, or distress befalls a Muslim, not even a thorn that pricks him, without Allah expiating some of his sins thereby."

Azami 3401

Sahih

عن أبي هريرة

وأبي سعيد، عن النبي ﷺ قال: ما يصيب المسلم من نصب، ولا وصب، ولا هم، ولا حزن، ولا أذى، ولا غم، حتى الشوكة يشاكها إلا كفر الله بها من خطاياه.

الأعظمي 3401صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Patience in tribulation and illness
Section
Reward of the believer for what afflicts him of illness, grief, or the like
Numbering
Jami al-Kamil 3401 (2nd edition)
Azami 3401