Hadith 17:567
Abu al-Ahwas narrated to us, from Asim, from Muhammad, who said: The rider greets the walker, and the walker greets the one who is sitting. If they meet, the last of them to arrive begins [the greeting].
حدثنا أبو الأحوص عن عاصم عن محمد قال يسلم الراكب على الماشي والماشي على القاعد فإذا التقيا بدأ آخرهما