Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The Muslim has six rights upon his fellow Muslim."Someone asked, "What are they, Messenger of Allah?"He replied, "When you meet him, greet him with salam. When he invites you, accept his invitation. When he seeks your advice, give him sincere counsel. When he sneezes and praises Allah, say 'yarhamuk Allah' to him. When he falls ill, visit him. And when he dies, follow his funeral procession."

Azami 14097

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: حق المسلم على المسلم ست قيل: ما هن يا رسول الله؟ قال: إذا لقيته فسلم عليه، وإذا دعاك فأجبه، وإذا استنصحك فانصح له، وإذا عطس فحمد الله فشمته، وإذا مرض فعده، وإذا مات فاتبعه.

الأعظمي 14097صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Characteristics of Muslims, and their rights upon one another
Section
Rights of a Muslim over another Muslim
Numbering
Jami al-Kamil 14097 (2nd edition)
Azami 14097