Abu Saeed Khudri reported,

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

Muslim 5648

Sahih

حدثنا سويد بن سعيد حدثنا حفص بن ميسرة عن زيد بن أسلم عن عطاء بن يسار

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

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

مسلم 5648صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Peace
Chapter
Returning the greeting is part of the right of sitting on the road
Numbering
Darussalam 5648
Muslim 5648