Jabir bin Abdullah reported,

The fever sought permission to enter upon the Prophet ﷺ.He asked, "Who is this?"She replied, "Umm Mildam."He directed her to the people of Quba. They suffered from her what only Allah knows, so they came to him and complained about it.He said, "What do you wish? If you like, I will pray to Allah to remove it from you, or if you prefer, let it be a means of purification for you."In another narration, they said, "Rather, let it be a purification."

Azami 3410

Sahih

عن جابر، قال

استأذنت الحمى على النبي ﷺ، فقال: من هذه؟ قالت: أم ملدم. قال: فأمر بها إلى أهل قباء. فلقوا منها ما يعلم الله، فأتوه فشكوا ذلك إليه. فقال: ما شئتم؟ إن شئتم أن أدعو الله لكم فيكشفها عنكم، وإن شئتم أن تكون لكم طهورا. وفي رواية قالوا: بل تكون طهورا.

الأعظمي 3410صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Patience in tribulation and illness
Section
Reward of the believer for what afflicts him of illness, grief, or the like
Numbering
Jami al-Kamil 3410 (2nd edition)
Azami 3410