Sunan Ibn Majah, Book 31, Hadith 3598 (In-Book) ⓘ
It was narrated that Abu Hurairah said: “Mention of fever was made in the presence of the Messenger of Allah, and a man cursed it. The Prophet said: ‘Do not curse it, for it erases sin as fire removes filth from iron.’”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، عَنْ مُوسَى بْنِ عُبَيْدَةَ، عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ، عَنْ حَفْصِ بْنِ عُبَيْدِ اللَّهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ ذُكِرَتِ الْحُمَّى عِنْدَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ فَسَبَّهَا رَجُلٌ فَقَالَ النَّبِيُّ ـ صلى الله عليه وسلم ـ " لاَ تَسُبَّهَا فَإِنَّهَا تَنْفِي الذُّنُوبَ كَمَا تَنْفِي النَّارُ خَبَثَ الْحَدِيدِ " .
also referenced under: Hadith 3469 (Reference) & Volume 4, Book 31, Hadith 3469 (DarusSalam)