The Messenger of Allah ﷺ said, "Five things are the right of a Muslim upon another Muslim: returning the greeting, accepting an invitation, attending funerals, visiting the sick, and responding to one who sneezes when he praises Allah."
وبإسناده عن أبي هريرة قال قال رسول الله ﷺ خمس من حق المسلم على المسلم رد التحية وإجابة الدعوة وشهود الجنازة وعيادة المريض وتشميت العاطس إذا حمد الله عز وجل