It is narrated from Sayyiduna Jabir (may Allah be pleased with him), as a marfu' report, that the Messenger of Allah (peace and blessings be upon him) said: "The one riding should greet the one walking, and the one walking should greet the one sitting; and when two people walking meet, whichever of them is first to give the greeting of salam is the more virtuous."
Imam al-Harith narrated this hadith in his Musnad, and its basis is also found in Sahih Muslim.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الأدب / 2696
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده صحيح. » «أخرجه صحيح ابن حبان برقم: 498، وأخرجه السنن الكبرى للبيهقي برقم: 18788»