(1) باب يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي وَالْقَلِيلُ عَلَى الْكَثِيرِ
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
The rider should first greet the pedestrian, and the pedestrian the one who is seated and a small group should greet a larger group (with as-Salam-u-'Alaikum).
Reference: Sahih Muslim 2160
In-book reference: Book 39, Hadith 1
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5374
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.