It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: "The rider should greet the one who is walking, and the one who is walking should greet the one who is sitting, and the smaller group should greet the larger group."
It is narrated from Sayyiduna Fadala (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: "The rider should greet the one who is walking, and those who are fewer in number should greet those who are greater in number."
Hadith Referenceالادب المفرد / كتاب السلام / 996
Hadith Gradingالألبانی:صحيح
Hadith Takhrij«صحيح : جامع الترمذي ، الاسئتذان و الآداب ، ح : 2705»