[Machine] The Messenger of Allah ﷺ said, "The one who is riding should greet the one who is walking, and the one who is walking should greet the one who is sitting, and the small group should greet the larger group." Ibn Jurayj said, "Abu Zubair informed me that he heard Jabir say, 'When two people who are walking meet, the one who initiates the greeting is better.'"
عَنْ رَسُولِ اللهِ ﷺ قَالَ يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي وَالْمَاشِي عَلَى الْقَاعِدِ وَالْقَلِيلُ عَلَى الْكَثِيرِ قَالَ ابْنُ جُرَيْجٍ وَأَخْبَرَنِي أَبُو الزُّبَيْرِ أَنَّهُ سَمِعَ جَابِرًا يَقُولُ الْمَاشِيَانِ إِذَا اجْتَمَعَا فَأَيُّهُمَا بَدَأَ بِالسَّلَامِ فَهُوَ أَفْضَلُ