Narrated Umm al-Ala (RA): The Messenger of Allah (peace be upon him) visited me while I was sick. He said: Be glad, Umm al-Ala’ (RA) for Allah removes the sins of a Muslim for his illness as fire removes the dross of gold and silver.
Sunan Abi Dawud, Book 21, Hadith 4