Jami` at-Tirmidhi, Book 42, Hadith 18 (Tirmidhi 2775)

Narrated Fadalah bin 'Ubaid:

that the Messenger of Allah (ﷺ) said: "The horseman gives Salam to the walking person, the walking person to the one standing and the few to the many."