Abu Saeed Khudri reported,

The Prophet ﷺ said, "Beware of sitting in the roadways."The companions said, "Messenger of Allah, we have no choice but to hold our gatherings there to converse."The Messenger of Allah ﷺ replied, "If you must sit there, then give the road its due."They asked, "What is its due?"He said, "Lowering the gaze, refraining from causing harm, returning the greeting of peace, enjoining what is right, and forbidding what is wrong."

Azami 14765

Sahih

عن أبي سعيد الخدري

عن النبي ﷺ قال: إياكم والجلوس بالطرقات قالوا: يا رسول الله ما لنا بد من مجالسنا نتحدث فيها. قال رسول الله ﷺ: إذا أبيتم إلا المجلس، فأعطوا الطريق حقه قالوا: وما حقه؟ قال: غض البصر، وكف الأذى، ورد السلام، والأمر بالمعروف والنهي عن المنكر.

الأعظمي 14765صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Rights of the road
Numbering
Jami al-Kamil 14765 (2nd edition)
Azami 14765