‘Umar b. al-Khattab reported God’s messenger as saying, “When you visit an invalid tell him to make supplication for you, for his supplication is like that of the angels.”
Ibn ‘Abbas said that staying for a short time and making little noise when visiting an invalid is part of the sunna. He reported God’s messenger as saying, when their clamour and disagreement became excessive, ‘‘Get up and leave me.”(This was during the Prophet's last illness, the disagreement taking place regarding the advisability of the Prophet giving them further written instructions.)
Shaqiq said he visited ‘Abdallah b. Mas'ud when he was ill, and he began to weep. On being reproved by someone he said, "I am not weeping because of the illness, because I heard God’s messenger say that illness is an atonement; I am weeping simply because it has come to me when my powers are weakened and did not come when I was active, because a servant of God has recorded for him such reward when he is ill as was being recorded for him before he became ill and the illness prevented him from doing .”