Six are the rights of a Muslim over another Muslim. It was said to him: Messenger of Allah, what are these? Thereupon he said: When you meet him, offer him greetings;when he invites you to a feast accept it. when he seeks your council give him, and when he sneezes and says:" All praise is due to Allah," you say Yarhamuk Allah (may Allah show mercy to you) ; and when he fails ill visit him; and when he dies follow his bier. (Using translation from Muslim 2162b)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ حَقُّ الْمُسْلِمِ عَلَى الْمُسْلِمِ سِتٌّ قَالُوا وَمَا هُنَّ يَا رَسُولَ اللهِ؟ قَالَ إِذَا لَقِيَكَ فسَلِّمْ عَلَيْهِ وَإِذَا دَعَاكَ فَأَجِبْهُ وَإِذَا اسْتَنْصَحَكَ فَانْصَحْ لَهُ وَإِذَا عَطَسَ فَحَمِدَ اللهَ فَشَمِّتْهُ وَإِذَا مَرِضَ فَعُدْهُ وَإِذَا مَاتَ فَاصْحَبْهُ