Hazrat Abu Musa, Allah be pleased with him, narrates that the Holy Prophet, peace and blessings of Allah be upon him, said:
“When a servant of Allah is accustomed to doing good works and falls ill or goes on a journey, his deed will be recorded for him similar to how it would when he was well and staying at home.”
(Sunan Abi Dawud)