Abu Hurairah reported the Messenger of Allah ﷺ as saying: one who is riding should salute one who is walking. He then mentioned the rest of the tradition.
Hadith ReferenceSunan Abi Dawud / (Abwab Us Salam ) / Hadith: 5199
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح بخاري (6233) صحيح مسلم (2160)
Hadith Takhrij« صحیح البخاری/ الاستئذان 5 (6232)، 6 (6233)، صحیح مسلم/ السلام 1 (2160)، (تحفة الأشراف: 12226)، وقد أخرجہ: مسند احمد (2/325، 510) (صحیح) »