Bara bin Azib reported,

He did not hear it directly from him that the Messenger of Allah ﷺ passed by some men from the Ansar who were sitting in the road. He said, "If you must do so, then return the greeting of peace, help the wronged, and guide the lost traveler."

Tirmidhi 2726

Sahih

حدثنا محمود بن غيلان حدثنا أبو داود حدثنا شعبة عن أبي إسحق

عن البراء

ولم يسمعه منه أن رسول الله ﷺ مر بناس من الأنصار وهم جلوس في الطريق فقال إن كنتم لا بد فاعلين فردوا السلام وأعينوا المظلوم واهدوا السبيل

الترمذي 2726صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Permission and etiquette
Chapter
Sitting on the road
Numbering
Darussalam 2726
Tirmidhi 2726