عَنْ سَهْلِ بْنِ مُعَاذٍ رَضِيَ اللَّهُ عَنْهُ عَنْ أَبِيهِ رَضِيَ اللَّهُ عَنْهُ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَنَّهُ قَالَ حَقٌّ عَلَى مَنْ قَامَ عَلَى مَجْلِسٍ أَنْ يُسَلِّمَ عَلَيْهِمْ وَحَقٌّ عَلَى مَنْ قَامَ مِنْ مَجْلِسٍ أَنْ يُسَلِّمَ فَقَامَ رَجُلٌ وَرَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَتَكَلَّمُ فَلَمْ يُسَلِّمْ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ مَا أَسْرَعَ مَا نَسِيَ
Sayyiduna Mu’adh bin Anas al-Juhani (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) said: Whoever comes to a gathering, it is his duty to say salam, and whoever stands up to leave a gathering, it is also his duty to say salam when leaving. Meanwhile, a man stood up to leave, and since the Noble Prophet (peace and blessings be upon him) was still engaged in conversation, he left without saying salam. The Prophet (peace and blessings be upon him) said about him: He has forgotten the matter very quickly.