Abu Hurayra reported that the Prophet (ﷺ) said, "When a man comes to a gathering, he should give the greeting. When he sits down and then thinks that he should leave before the gathering has broken up, he should give the greeting. Neither is more of a duty than the other."
Reference: Al-Adab Al-Mufrad 1008 In-book : Book 42, Hadith 45 English translation : Book 42, Hadith 1008
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.