from Abu Hurairah that the Prophet ﷺ said: "The rider gives the Salam to the walking person, and the walking person to the sitting person and the few to the many." Ibn Al-Muthanna added in his narration: "And the young one gives the Salam to the elder."
عَنِ النَّبِيِّ ﷺ قَالَ يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي وَالْمَاشِي عَلَى الْقَاعِدِ وَالْقَلِيلُ عَلَى الْكَثِيرِ وَزَادَ ابْنُ الْمُثَنَّى فِي حَدِيثِهِ وَيُسَلِّمُ الصَّغِيرُ عَلَى الْكَبِيرِ وَفِي الْبَابِ عَنْ عَبْدِ الرَّحْمَنِ بْنِ شِبْلٍ وَفَضَالَةَ بْنِ عُبَيْدٍ وَجَابِرٍ