Mu’adh ibn Anas reported: The Messenger of Allah, peace and blessings be upon him, said, “It is a duty upon one arriving at a gathering to offer greetings of peace to them. It is a duty upon one leaving a gathering to offer salutations of peace to them.”
Source: Musnad Aḥmad 15615
Grade: Sahih li ghayrihi (authentic due to external evidence) according to Al-Albani
عَنْ مُعَاذِ بْنِ أَنَسٍ عَنْ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ حَقٌّ عَلَى مَنْ قَامَ عَلَى مَجْلِسٍ أَنْ يُسَلِّمَ عَلَيْهِمْ وَحَقٌّ عَلَى مَنْ قَامَ مِنْ مَجْلِسٍ أَنْ يُسَلِّمَ
15615 مسند أحمد بن حنبل
2708 المحدث الألباني خلاصة حكم المحدث صحيح لغيره في صحيح الترغيب