Language:
كتاب المظالم
46  
Oppressions
(22)
Chapter: Open courtyards of houses and sitting on the ways
(22)
باب أَفْنِيَةِ الدُّورِ وَالْجُلُوسِ فِيهَا وَالْجُلُوسِ عَلَى الصُّعُدَاتِ
Sahih al-Bukhari 2465

Narrated Abu Sa`id Al-Khudri:

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."

حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا أَبُو عُمَرَ، حَفْصُ بْنُ مَيْسَرَةَ عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ إِيَّاكُمْ وَالْجُلُوسَ عَلَى الطُّرُقَاتِ ‏"‏‏.‏ فَقَالُوا مَا لَنَا بُدٌّ، إِنَّمَا هِيَ مَجَالِسُنَا نَتَحَدَّثُ فِيهَا‏.‏ قَالَ ‏"‏ فَإِذَا أَبَيْتُمْ إِلاَّ الْمَجَالِسَ فَأَعْطُوا الطَّرِيقَ حَقَّهَا ‏"‏ قَالُوا وَمَا حَقُّ الطَّرِيقِ قَالَ ‏"‏ غَضُّ الْبَصَرِ، وَكَفُّ الأَذَى، وَرَدُّ السَّلاَمِ، وَأَمْرٌ بِالْمَعْرُوفِ، وَنَهْىٌ عَنِ الْمُنْكَرِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2465
In-book reference : Book 46, Hadith 26
USC-MSA web (English) reference : Vol. 3, Book 43, Hadith 645
  (deprecated numbering scheme)