(463) بَابُ التَّسْلِيمِ إِذَا قَامَ مِنَ الْمَجْلِسِ
Abu Hurayra reported that the Prophet, may Allah bless him andgrant him peace, said, "When a man comes to a gathering, he should givethe greeting. When he sits down and then thinks that he should leave beforethe gathering has broken up, he should give the greeting. Neither is moreof a duty than the other."
Reference: Al-Adab Al-Mufrad 1008
In-book reference: Book 42, Hadith 45
English translation: Book 42, Hadith 1008