Mishkat al-Masabih 1582
وَعَنْ ثَوْبَانَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: إِذَا أَصَابَ أَحَدَكُمُ الْحُمَّى فَإِنَّ الْحمى قِطْعَة من النَّار فليطفها عَنْهُ بِالْمَاءِ فَلْيَسْتَنْقِعْ فِي نَهْرٍ جَارٍ وَلْيَسْتَقْبِلْ جِرْيَتَهُ فَيَقُولُ: بِسْمِ اللَّهِ اللَّهُمَّ اشْفِ عَبْدَكَ وَصدق رَسُولك بعد صَلَاة الصُّبْح وَقبل طُلُوعِ الشَّمْسِ وَلْيَنْغَمِسْ فِيهِ ثَلَاثَ غَمْسَاتٍ ثَلَاثَةَ أَيَّامٍ فَإِنْ لَمْ يَبْرَأْ فِي ثَلَاثٍ فَخَمْسٍ فَإِنْ لَمْ يَبْرَأْ فِي خَمْسٍ فَسَبْعٍ فَإِنْ لَمْ يَبْرَأْ فِي سَبْعٍ فَتِسْعٍ فَإِنَّهَا لَا تَكَادَ تُجَاوِزُ تِسْعًا بِإِذْنِ اللَّهِ عَزَّ وَجَلَّ . رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ غَرِيبٌ
From Thawban, that the Messenger of Allah ﷺ said: "When fever afflicts one of you — and fever is a piece of the Fire — let him extinguish it from himself with water. Let him immerse himself in a flowing river, facing its current, and say: 'In the name of Allah. O Allah, heal Your servant and confirm the truth of Your Messenger,' after the Subh prayer and before sunrise. Let him immerse himself in it three times for three days. If he does not recover in three, then five; if he does not recover in five, then seven; if he does not recover in seven, then nine; for it hardly ever goes beyond nine, by the permission of Allah, Mighty and Majestic." Reported by at-Tirmidhi, and he said: "This is a gharib hadith."