The Prophet ﷺ said, "When fever afflicts one of you, fever is a portion of the Fire, so 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 Your Messenger.' This should be done after the dawn prayer and before sunrise. Let him plunge into it three times for three days. If he is not cured in three, then five. If he is not cured in five, then seven. If he is not cured in seven, then nine, for it scarcely exceeds nine, by the permission of Allah."
حدثنا أحمد بن سعيد الأشقر الرباطي حدثنا روح بن عبادة حدثنا مرزوق أبو عبد الله الشامي حدثنا سعيد رجل من أهل الشام
عن النبي ﷺ قال إذا أصاب أحدكم الحمى فإن الحمى قطعة من النار فليطفئها عنه بالماء فليستنقع نهرا جاريا ليستقبل جريته فيقول بسم الله اللهم اشف عبدك وصدق رسولك بعد صلاة الصبح قبل طلوع الشمس فليغتمس فيه ثلاث غمسات ثلاثة أيام فإن لم يبرأ في ثلاث فخمس وإن لم يبرأ في خمس فسبع فإن لم يبرأ في سبع فتسع فإنها لا تكاد تجاوز تسعا بإذن الله
[Its chain of transmission is daif] Ahmad related it in 5/281 from Rawh bin Ubada with the same chain. Saeed bin Zuraa, the transmitter from the Homs region of Syria, is mastur (obscure), as stated in Taqrib.