It wasnarrated that Abu Hurairah said:
"Mention of fever was made inthepresence of the Messenger of Allah (ﷺ), and a man cursed it. TheProphet (ﷺ) said: 'Do not curse it, for it erases sin as fireremoves filth from iron.'" (TH)
English reference (TH): Vol. 4, Book 31, Hadith 3469 (TH)
Arabic reference (TH): Book 31, Hadith 3598 (TH)