It is narrated from Hazrat Muslim bin Yasar that when a servant falls ill, the best deeds that he used to do in good health are written for him.