Hadith 220

that he heard the Prophet (ﷺ) said, "The person riding should greet the person on foot. The person on foot should greet the person who is seated. The smaller group should greet the large. Whoever answers the greeting, that is for him. Whoever does not answer it, has nothing.

'Abdu'r-Rahman ibn Shibl (رضي الله عنه)Al-Adab Al-Mufrad 992Adab & Virtues of Greetings