Abu Hurayra reported that the Messenger of Allah, may Allah bless
him and grant him peace, said, "When one of you comes to a gathering, he
should give the greeting. If he leaves, he should give the greeting. Neither
is more of a duty than the other."
At-Tufayl ibn Ubayy ibn Ka'b related that he used to visit 'Abdullah
ibn 'Umar and would go with him to the market. He said, "When we went to
the market, 'Abdullah ibn 'Umar did not pass by any rubbish collector nor
merchant nor poor person nor anyone else without greeting them."
Abu Hurayra reported that the Prophet, may Allah bless him and
grant him peace, 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."