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.”
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!”’
Abu Sa'id reported God’s messenger as saying, "When you go in to visit an invalid, express a hope that he will live long. That will not avert anything, but it will comfort him.”
Tirmidhl and Ibn Majah transmitted it, and Tirmidhi said this is a gharib tradition.