(6) باب تَسْلِيمِ الْمَاشِي عَلَى الْقَاعِدِ
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "The riding person should greet the walking one,and the walking one should greet the sitting one, and the small numberof persons should greet the large number of persons."
Reference: Sahih al-Bukhari 6233
In-book reference: Book 79, Hadith 7
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 74, Hadith 252