A patient is credited with the deeds that he used to do when healthy Al-Adab Al-Mufrad 508
Arabic hadith text
حَدَّثَنَا عُمَرُ، قَالَ: حَدَّثَنَا أَبِي، قَالَ: حَدَّثَنَا الأَعْمَشُ قَالَ: حَدَّثَنِي أَبُو سُفْيَانَ، عَنْ جَابِرٍ قَالَ: سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ: مَا مِنْ مُؤْمِنٍ وَلاَ مُؤْمِنَةٍ، وَلاَ مُسْلِمٍ وَلاَ مَسْلَمَةٍ، يَمْرَضُ مَرَضًا إِلاَّ قَصَّ اللَّهُ بِهِ عَنْهُ مِنْ خَطَايَاهُ.
Translation
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)."