Mishkat al-Masabih 1525
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «حَقُّ الْمُسْلِمِ عَلَى الْمُسْلِمِ سِتٌّ» . قِيلَ: مَا هُنَّ يَا رَسُولَ اللَّهِ؟ قَالَ: «إِذَا لَقِيتَهُ فَسَلِّمْ عَلَيْهِ وَإِذَا دَعَاكَ فَأَجِبْهُ وَإِذَا اسْتَنْصَحَكَ فَانْصَحْ لَهُ وَإِذَا عَطَسَ فَحَمِدَ اللَّهَ فَشَمِّتْهُ وَإِذَا مَرِضَ فَعُدْهُ وَإِذَا مَاتَ فَاتَّبِعْهُ» . رَوَاهُ مُسلم
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "The rights of a Muslim over a Muslim are six." It was said: "What are they, O Messenger of Allah?" He said: "When you meet him, greet him with salam; when he invites you, accept his invitation; when he asks you for advice, advise him sincerely; when he sneezes and praises Allah, respond to him; when he falls ill, visit him; and when he dies, follow [his funeral]." Reported by Muslim.