Anas ibn Malik reported that the Companions of the Prophet, may
Allah bless him and grant him peace, used to gather and they would turn
towards the tree and a group of them would go to the right and a group
to its left. When they met again, they would greet one another.
'Abdullah ibn 'Amr reported that a man said, "Messenger of Allah,
which aspect of Islam is best?" He replied, "Feeding people and greeting
those you know and those you do not know."
Abu Hurayra said, "Whoever meets his brother should greet him.
If a tree or wall comes between them and then he meets him, he should greet
him on the other side."