Abu Huraira reported God’s messenger as saying, '"If anyone visits an invalid, one cries out from heaven, ‘May you be good, may your walk be good, and may you come to an abode in paradise!”’
Anas told that when a young Jew who was a servant of the Prophet became ill the Prophet went to visit him and, sitting down by his head, said to him, “Accept Islam.” He looked at his father who was beside him, and he said, "Obey Abul Qasim.” So he accepted Islam, and the Prophet went out saying, "Praise be to God who has saved him from hell.”
Ibn ‘Abbas said that when ‘Ali came out after visiting the Prophet during the painful illness of which he died, the people asked, “How is God's messenger this morning, Abul Hasan?” He replied, “Praise be to God, he is getting better.”