كتاب السلام
5  
The Book of Greetings
(139)
Chapter: The Excellence of Greeting Upon Arrival and Departure
(139)
- باب استحباب السلام إذا قام من المجلس وفارق جلساءه أو جليسه
Riyad as-Salihin 869
Abu Hurairah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "When one of you arrives in a gathering, he should offer Salam to those who are already there, and he should also do so when he intends to depart. The first act of greeting is not more meritorious than the last.''


[Abu Dawud and At-Tirmidhi].

وعن أبي هريرة رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم‏:‏ ‏"‏إذا انتهى أحدكم إلى المجلس فليسلم، فإذا أراد أن يقوم فليسلم، فليست الأولى بأحق من الآخرة‏"‏ ‏(‏‏(‏رواه أبو داود، والترمذي وقال‏:‏ حديث حسن‏"‏‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 869
In-book reference : Book 5, Hadith 26