This Hadīth explains the recommended order of who should start with greeting the other. It mentioned four types: 1. The younger person greets the older one out of respect for him. 2. The walking person should start with greeting the sitting person because he is like the one coming to him. 3. The larger group takes precedence over the smaller group, so it is better that the smaller group greets the larger one first. 4. The one who is riding is favored with the blessing of having something to ride, so his starting with greeting the one walking is kind of showing gratitude to Allah for His favor.
صحيح البخاري, تأليف: محمد بن إسماعيل البخاري, تحقيق: محمد زهير بن ناصر الناصر, دار طوق النجاة ترقيم محمد فؤاد عبدالباقي, ط 1422هـ. صحيح مسلم, تأليف: مسلم بن حجاج النيسابوري, تحقيق: محمد فؤاد عبدالباقي, دار إحياء التراث العربي. فتح ذي الجلال والاكرام بشرح بلوغ المرام، للشيخ ابن عثيمين، مدار الوطن للنشر، الطبعة الأولى 1430 - 2009م. توضِيحُ الأحكَامِ مِن بُلوُغ المَرَام، للبسام، مكتَبة الأسدي، مكّة المكرّمة، الطبعة: الخامِسَة، 1423 هـ - 2003 م.