Abu Huraira (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) said: The rider should greet the one who is walking, the one who is walking should greet the one who is sitting, and a smaller group should greet a larger group.