Jabir bin Abdullah reported,

The Messenger of Allah ﷺ visited Umm Saaib, or Umm Musayyab, and asked, "What is wrong with you, Umm Saaib, or Umm Musayyab, that you are shivering?"She replied, "It is the fever, may Allah not bless it!"He said, "Do not curse the fever, for it removes the sins of the children of Adam just as the bellows removes impurities from iron."

Azami 3409

Sahih

عن جابر بن عبد الله

أن رسول الله ﷺ دخل على أم السائب، أو أم المسيب، فقال: ما لك يا أم السائب، أو أم المسيب تزفزفين؟ قالت: الحمى لا بارك الله فيها! فقال: لا تسبي الحمى؛ فإنها تذهب خطايا بني آدم كما يذهب الكير خبث الحديد.

الأعظمي 3409صحيح
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 3409 (2nd edition)
Azami 3409