Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying:one who is riding should salute one who is walking. He then mentioned the rest of the tradition
Hadith No. 5199
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Sahih Bukhari (6233) Sahih Muslim (2160)