وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي وَالْمَاشِي عَلَى الْقَاعِدِ وَالْقَلِيلُ عَلَى الْكَثِيرِ»
Abu Huraira (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "The rider should greet the one who is walking, the one who is walking should greet the one who is sitting, and the smaller group should greet the larger group." Agreed upon.