Sahih al-Bukhari 6232
Sahih al-Bukhari · Book 79: Asking Permission · The riding person should greet the walking person
Narrated Abu Huraira:
حَدَّثَنَا مُحَمَّدٌ ، أَخْبَرَنَا مَخْلَدٌ ، أَخْبَرَنَا ابْنُ جُرَيْجٍ ، قَالَ أَخْبَرَنِي زِيَادٌ ، أَنَّهُ سَمِعَ ثَابِتًا ، مَوْلَى عَبْدِ الرَّحْمَنِ بْنِ زَيْدٍ أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي، وَالْمَاشِي عَلَى الْقَاعِدِ، وَالْقَلِيلُ عَلَى الْكَثِيرِ " .
Allah's Messenger (ﷺ) said, "The riding one should greet the walking one, and the walking one should greet the sitting one, and the small number of persons should greet the large number of persons."