Sunan Abi Dawud, Book 21, Hadith 3 (Abu Dawud 3092)
Narrated Abu Musa:
I heard the Prophet (ﷺ) many times say: When a servant of Allah is accustomed to do a good work, then becomes ill or goes on journey, what was accustomed to do when he was well and staying at home will be recorded for him.