A patient is credited with the deeds that he used to do when healthy Al-Adab Al-Mufrad 507
Arabic hadith text
حَدَّثَنَا بِشْرٌ، قَالَ: حَدَّثَنَا عَبْدُ اللهِ، قَالَ: حَدَّثَنَا عُبَيْدُ اللهِ بْنُ عَبْدِ الرَّحْمَنِ بْنِ عَبْدِ اللهِ بْنِ مَوْهَبٍ قَالَ: حَدَّثَنِي عَمِّي عُبَيْدُ اللهِ بْنُ عَبْدِ اللهِ بْنِ مَوْهَبٍ قَالَ: سَمِعْتُ أَبَا هُرَيْرَةَ يَقُولُ: قَالَ رَسُولُ اللهِ صلى الله عليه وسلم: مَا مِنْ مُسْلِمٍ يُشَاكُ شَوْكَةً فِي الدُّنْيَا يَحْتَسِبُهَا، إِلاَّ قُصَّ بِهَا مِنْ خَطَايَاهُ يَوْمَ الْقِيَامَةِ.
Translation
Abu Hurayrah reported the Messenger of Allah (ﷺ) as saying, "if a thorn pricks a Muslim in this world and he hopes for the reward against it then Allah forgives him his sins on the day of Resurrection".