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 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."