one who is riding should salute one who is walking. He then mentioned the rest of the tradition.
Sunan Abi Dawud Book 43, Hadith 427