Umm al-Ala reported: The Messenger of Allah, peace and blessings be upon him, visited me when I was sick, and he said, “Be cheerful, O mother of al-Ala. When a Muslim is sick, Allah takes away his sins just as fire takes away impurities in gold and silver.”
Source: Sunan Abī Dāwūd 3092
Grade: Sahih (authentic) according to Al-Albani
عَنْ أُمِّ الْعَلَاءِ قَالَتْ عَادَنِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَأَنَا مَرِيضَةٌ فَقَالَ أَبْشِرِي يَا أُمَّ الْعَلَاءِ فَإِنَّ مَرَضَ الْمُسْلِمِ يُذْهِبُ اللَّهُ بِهِ خَطَايَاهُ كَمَا تُذْهِبُ النَّارُ خَبَثَ الذَّهَبِ وَالْفِضَّةِ
3092 سنن أبي داود كتاب الجنائز باب عيادة النساء
3092 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح أبي داود