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.'" (ID)
English reference (ID): Vol. 4, Book 31, Hadith 3469 (ID)
Arabic reference (ID): Book 31, Hadith 3598 (ID)