Riyad as-Saliheen 1623
Abu Sa'id Al-Khudri (May Allah be pleased with him) said:
The Prophet ﷺ said, "Avoid sitting on roadsides." His Companions said: "O Messenger of Allah ﷺ, there is no other alternative but to sit there to talk." Thereupon the Messenger of Allah ﷺ said, "If you have to sit at all, then fulfill the rights of the road." They asked: "What are their rights?" Thereupon he said, "Lowering the gaze (so that you may not stare at unlawful things), refraining from doing some harm to others, responding to greeting (i.e., saying 'Wa'alaikumus- salam' to one another) and commanding the good and forbidding the evil."
[Al-Bukhari and Muslim].
وعن أبي سعيد الخُدري رضي الله عنه عن النبي ﷺ قال: "إياكم والجلوس في الطرقات". قالوا: يا رسول الله ما لنا من مجالسنا بُد نتحدث فيها. فقال رسول الله ﷺ : "فإذا أبيتم إلا المجلس، فأعطوا الطريق حقه" قالوا: وما حق الطريق يا رسول الله؟ قال: "غض البصر، وكف الأذى، ورد السلام، والأمر المعروف والنهي عن المنكر" ((متفق عليه)).