It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) raised his blessed gaze towards the sky and then lowered it. We said: O Messenger of Allah (peace and blessings be upon him)! Why did you do that? He (peace and blessings be upon him) said: 'I marvelled at two angels who came down to the earth intending to look for a servant at his place of prayer, but did not find him there. Then both of them went up to the court of their Lord and said: O our Lord! We used to write for Your believing servant such-and-such (good) deeds in his day and night, but we found that You had confined him in the grip of Your decree (illness or trial), so we did not write anything for him. Then Allah, the Blessed and Exalted, said: Keep writing for My servant the (usual) deeds of his day and night and do not reduce anything from them; his reward is upon Me, out of My generosity. It is I who have held him back, and he will receive the reward of all that he used to do (when healthy).'"
Imam al-Tayalisi recorded it from Muhammad bin Abi Humayd, who is a da'if (weak) narrator; however, this hadith has a shahid (supporting narration) from the narration of Sayyiduna Anas (may Allah be pleased with him), which will come later.