عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " يُسَلِّمُ الصَّغِيرُ عَلَى الْكَبِيرِ، وَالْمَارُّ عَلَى الْقَاعِدِ، وَالْقَلِيلُ عَلَى الْكَثِيرِ "(بُخاری شریف ۶۲۳۱)
Translation
The Prophet (peace and blessings of Allah be upon him) said: "The younger should greet the older, the one who is walking should greet those who are sitting, and the smaller group should greet the larger group." (Because they are fewer in number, they are of lesser status, so they should greet the larger group.) (Tuhfat-ul-Qari)