It wasnarrated that 'Ali said that the Messenger of Allah (ﷺ)said:
"The Muslim has six courtesies due from the Muslim: He shouldgreethim with Salam when he meets him; he should accept hisinvitation ifhe invites him; he should answer [by Yarhamuk-Allah (mayAllah havemercy on you)] to him if he sneezes (and says Al-Hamdulillah); heshould visit him if he falls sick; he should followhis funeral if hedies; and he should love for him what he loves forhimself."
English reference: Vol. 1, Book 6, Hadith 1433
Arabic reference: Book 6, Hadith 1500