Al-Adab Al-Mufrad, Book 42, Hadith 996 (English)

Fadala reported that the Prophet, may Allah bless him and grant him peace, said, "The person riding greets the person sitting and the small group greets the larger."

حَدَّثَنَا أَصْبَغُ قَالَ‏:‏ أَخْبَرَنِي ابْنُ وَهْبٍ قَالَ‏:‏ أَخْبَرَنِي ابْنُ هَانِئٍ، عَنْ عَمْرِو بْنِ مَالِكٍ، عَنْ فَضَالَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ‏:‏ يُسَلِّمُ الْفَارِسُ عَلَى الْقَاعِدِ، وَالْقَلِيلُ عَلَى الْكَثِيرِ‏.‏

sunnah.com