The Messenger of Allah (ﷺ) visited me while I was sick. He said: Be glad, Umm al-Ala' 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