Hadithcore
Mishkat al-Masabih, 1583

Abu Huraira said that fever was mentioned in the presence of God’s messenger, and when a man reviled it the Prophet (ﷺ) said, "Do not revile it, for it removes sins as fire removes the dross of iron.” Ibn Majah transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: ذُكِرَتِ الْحُمَّى عِنْدَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَسَبَّهَا رَجُلٌ فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تَسُبَّهَا فَإِنَّهَا تَنْفِي الذُّنُوبَ كَمَا تَنْفِي النَّارُ خَبَثَ الْحَدِيدِ» . رَوَاهُ ابْن مَاجَه

References1 variant
In-Book Reference
Book 5, Hadith 61