Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings of Allah be upon him) said: "Visit the sick, and follow the funerals, you will remember the Hereafter."
Hadith Referenceسلسله احاديث صحيحه / الطب والعيادة / 1649