

Visiting the sick is the right of a Muslim over his fellow Muslim. It strengthens brotherhood and helps to psychologically reduce the pain of the sick.
In Islam, we are encouraged to visit such people and not to neglect them.
The extent of the importance of this can be gauged from the some authentic Hadiths below:
Abu Musa (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "Visit the sick, feed the hungry, and (arrange for the) release of the captive.''
[Al-Bukhari].
[Riyad as-Salihin 897]
Ibn 'Abbas (May Allah be pleased with them) reported:
The Prophet (ﷺ) visited a bedouin who was sick. Whenever he visited an ailing person, he would say, "La ba'sa, tahurun in sha' Allah [No harm, (it will be a) purification (from sins), if Allah wills]."
[Al-Bukhari].
[Riyad as-Salihin 907]
Thauban, the freed slave of Allah's Messenger (ﷺ), reported that Allah's Messenger (ﷺ) said:
He who visits the sick continues to remain in the fruit garden of Paradise until he returns.
[Sahih Muslim 2568b]
'Ali bin Abu Talib (May Allah be pleased with him) reported:
I heard the Messenger of Allah (ﷺ) saying, "When a Muslim visits a sick Muslim at dawn, seventy thousand angels keep on praying for him till dusk. If he visits him in the evening, seventy thousand angels keep on praying for him till the morning; and he will have (his share of) reaped fruits in Jannah."
[At- Tirmidhi].
[Riyad as-Salihin 899]
Abdullah narrated that:
The Prophet said: "Whoever consoles a person with an affliction, then he gets the same reward as him."
[Grade: Da'if (Darussalam)]
[Jami` at-Tirmidhi 1073]
What a beautiful religion we have, I'm lucky for being a Muslim. Alhamdulillah
Abu Hurairah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "Verily, Allah, the Exalted, and Glorious will say on the Day of Resurrection: 'O son of Adam, I was ill but you did not visit Me.' He would say: 'O my Rubb, how could I visit you and You are the Rubb of the worlds?' Thereupon He would say: 'Did you not know that such and such a slave of Mine was ill but you did not visit him? Did you not realize that if you had visited him (you would have known that I was aware of your visit to him, for which I would reward you) you would have found Me with him? O son of Adam, I asked food from you but you did not feed Me.' He would submit: 'My Rubb, how could I feed You and You are the Rubb of the worlds?' He would say: 'Did you not know that such and such a slave of Mine asked you for food but you did not feed him? Did you not realize that if you had fed him, you would certainly have found (its reward) with Me? O son of Adam, I asked water from you but you did not give it to Me.' He would say: 'My Rubb, how could I give You (water) and You are the Rubb of the worlds?' Thereupon He would say: 'Such and such a slave of Mine asked you for water to drink but you did not give it to him. Did you not realize that if you had given him to drink you would have found (its reward) with Me?"'
[Muslim].
[Riyad as-Salihin 896]
Abu Hurairah (May Allah be pleased with him) reported:
I heard Messenger of Allah (ﷺ) saying, "Whosoever visits an ailing person or a brother of his to seek the Pleasure of Allah, an announcer (angel) calls out: 'May you be happy, may your walking be blessed, and may you be awarded a dignified position in Jannah".
[At- Tirmidhi, who categorized it as Hadith Hasan].
[Riyad as-Salihin 362]