Al-Adab Al-Mufrad
It is narrated by Jabir that he heard the Messenger of Allah (ﷺ) say, "If a believing man or a believing woman or a Muslim man or Muslim woman falls ill then Allah, the exalted, forgives them their sins (because of their illness)."
حَدَّثَنَا عُمَرُ، قَالَ: حَدَّثَنَا أَبِي، قَالَ: حَدَّثَنَا الأَعْمَشُ قَالَ: حَدَّثَنِي أَبُو سُفْيَانَ، عَنْ جَابِرٍ قَالَ: سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ: مَا مِنْ مُؤْمِنٍ وَلاَ مُؤْمِنَةٍ، وَلاَ مُسْلِمٍ وَلاَ مَسْلَمَةٍ، يَمْرَضُ مَرَضًا إِلاَّ قَصَّ اللَّهُ بِهِ عَنْهُ مِنْ خَطَايَاهُ.
Reference