The Prophet ﷺ said, "Beware! Avoid sitting on he roads (ways)." The people said, "There is no way out of it as these are our sitting places where we have talks." The Prophet ﷺ said, "If you must sit there, then observe the rights of the way." They asked, "What are the rights of the way?" He said, "They are the lowering of your gazes (on seeing what is illegal to look at), refraining from harming people, returning greetings, advocating good and forbidding evil."
عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ؓ عَنِ النَّبِيِّ ﷺ قَالَ إِيَّاكُمْ وَالْجُلُوسَ عَلَى الطُّرُقَاتِ فَقَالُوا مَا لَنَا بُدٌّ إِنَّمَا هِيَ مَجَالِسُنَا نَتَحَدَّثُ فِيهَا قَالَ فَإِذَا أَبَيْتُمْ إِلاَّ الْمَجَالِسَ فَأَعْطُوا الطَّرِيقَ حَقَّهَا قَالُوا وَمَا حَقُّ الطَّرِيقِ قَالَ غَضُّ الْبَصَرِ وَكَفُّ الأَذَى وَرَدُّ السَّلاَمِ وَأَمْرٌ بِالْمَعْرُوفِ وَنَهْىٌ عَنِ الْمُنْكَرِ