Sayyidina Ali (RA) reported that Allah’s Messenger (SAW) said, “A Muslim has six rights over a Muslim . (They are:) When they meet, he should offer him salaam. If he invites him, he should accept his invitation. When he sneezes and says al-Hamdulillah (Prase be to Allah) he must say yarhamak-Allah (May Allah have mercy on you). Visit him if he is sick. Follow his funeral when he dies. And, like for him what he likes for himself.”
[Ibn e Majah 1433, Ahmed 673]