Abu Saeed Khudri reported,

The Prophet ﷺ said, "Beware of sitting in the roadways."They said, "Messenger of Allah, we have no alternative to these gatherings of ours, where we sit and talk."The Messenger of Allah ﷺ said, "If you insist on gathering there, then give the road its due."They asked, "And what is its due?"He replied, "Lowering the gaze, refraining from causing harm, returning greetings, enjoining what is right, and forbidding what is wrong."

Muslim 5564

Sahih

و حدثناه يحيى بن يحيى أخبرنا عبد العزيز بن محمد المدني ح و حدثناه محمد بن رافع حدثنا ابن أبي فديك أخبرنا هشام يعني ابن سعد كلاهما عن زيد بن أسلم بهذا الإسناد مثله

مسلم 5564صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Clothing and adornment
Chapter
Prohibition of sitting in the roads and giving the road its due
Numbering
Darussalam 5564
Muslim 5564