Abu Musa Ashari reported,

I heard the Prophet ﷺ say, more than once or twice, "When a servant is engaged in righteous deeds and is then prevented from them by illness or travel, there is recorded for him the like of what he used to do when he was healthy and at home."

Abu Dawud 3091

Sahih

حدثنا محمد بن عيسى ومسدد المعنى قالا حدثنا هشيم عن العوام بن حوشب عن إبراهيم بن عبد الرحمن السكسكي عن أبي بردة

عن أبي موسى قال

سمعت النبي ﷺ غير مرة ولا مرتين يقول إذا كان العبد يعمل عملا صالحا فشغله عنه مرض أو سفر كتب له كصالح ما كان يعمل وهو صحيح مقيم

أبو داود 3091صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Funerals
Chapter
When a man used to do a righteous deed but was prevented from it by illness or travel
Numbering
Darussalam 3091
Abu Dawud 3091