Hadithcore
Riyad as-Salihin, 857

Abu Hurairah (May Allah be pleased with him) reported:

The Messenger of Allah (ﷺ) said, 'A rider should greet a pedestrian; a pedestrian should greet one who is sitting; and a small group should greet a large group (of people).'' <b>[Al-Bukhari and Muslim]</b>. The narration in Al-Bukhari adds: The Messenger of Allah (ﷺ) said, "The young should greet the elderly.''

عن أبي هريرة رضي الله عنه أن رسول الله صلى الله عليه وسلم قال‏:‏ ‏"‏يسلم الراكب على الماشي، والماشي على القاعد، والقليل على الكثير” ‏(‏‏(‏متفق عليه‏)‏‏)‏ وفي رواية للبخاري‏:‏ ‏"‏والصغير على الكبير‏"‏

References1 variant
In-Book Reference
Book 5, Hadith 14
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) Islam teaches its followers to deal politely, modestly, and kindly with one another. As a rider is in a higher position, he should greet those walking. Likewise, a walking person should greet one who is sitting.<br> 2) The young should show respect to the older ones. It also shows the right of the larger group over the smaller one.
Related hadiths3
Compare isnād across 3 related chains →