Abu Musa Al-Ash'ari (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "When a slave of Allah suffers from illness or sets on a journey, he is credited with the equal of whatever good works he used to do when he was healthy or at home".[Al-Bukhari].
Arabic/English book reference: Book 1, Hadith 133