The Messenger of Allah ﷺ said, "The rider greets the one walking, the one walking greets the one standing, and the smaller group greets the larger group."
حدثنا سويد بن نصر أنبأنا عبد الله أنبأنا حيوة بن شريح أخبرني أبو هانئ اسمه حميد بن هانئ الخولاني عن أبي علي الجنبي
أن رسول الله ﷺ قال يسلم الفارس على الماشي والماشي على القائم والقليل على الكثير
[Its isnad is hasan] Ahmad recorded it in 6/19 from the hadith of Haywa bin Shurayh, and Nasai in Amal al-Yawm wal-Layla, no. 338, from the hadith of Abu Hani through the same route, and Ibn Hibban graded it sahih, no. 1936. Abdullah is Ibn Mubarak.