Hadith 498
Sayyiduna Jabir (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: "A rider should greet the one who is walking, the one who is walking should greet the one who is sitting, and among two people walking, the one who greets first will have greater virtue."