Abdullah bin Masud reported,

I visited the Messenger of Allah ﷺ while he was suffering from a fever, and I said, "Messenger of Allah, you are burning with a severe fever."He replied, "Yes, indeed I suffer a fever equal to that of two men among you."I asked, "Is that because you receive a double reward?"He answered, "Yes, that is so. No Muslim is afflicted with any harm, even a thorn or something smaller, without Allah wiping away his sins by it, just as a tree sheds its leaves."

Azami 3396

Sahih

عن عبد الله بن مسعود، قال

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

الأعظمي 3396صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Patience in tribulation and illness
Section
Multiplication of the Prophet's ﷺ reward when he was afflicted with fever
Numbering
Jami al-Kamil 3396 (2nd edition)
Azami 3396