The Messenger of Allah ﷺ said, "Five duties are owed by a Muslim to his brother: returning the greeting of peace, responding to the one who sneezes, accepting an invitation, visiting the sick, and following the funeral procession."
حدثنا محمد بن داود بن سفيان وخشيش بن أصرم قالا حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن ابن المسيب
قال رسول الله ﷺ خمس تجب للمسلم على أخيه رد السلام وتشميت العاطس وإجابة الدعوة وعيادة المريض واتباع الجنازة
Recorded by Muslim, Book of Greetings, chapter on the right of a Muslim over another Muslim to return the greeting, no. 2162, and no. 19679 in Musannaf Abdul-Razzaq, and Bukhari, no. 1240, as a suspended narration, from the hadith of Abdul-Razzaq, through him.