Sunan Abu Dawud #3091
Funerals (Kitab Al-Jana'iz) 21:3
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.