Sunnah.com reference : Book 16, Hadith 85English translation : Book 16, Hadith 1564Arabic reference : Book 16, Hadith 1521
Abu Said al-Khudri (RAA) narrated that the Messenger of Allah (ﷺ) said:
“Avoid sitting by the road side.” The people then said, ‘O Allah‘s Messenger (ﷺ), we cannot do without those meeting places in which we converse” So he said, “Well, if you insist (on that) give the road its due rights.” They asked, ‘What are the road’s due rights?’ He replied, “Lowering your gaze, abstaining from anything offensive, returning salutations, enjoining the right (Ma'ruf) and forbidding from evil deeds (Munkar).” Agreed upon.
وَعَنْ أَبِي سَعِيدٍ اَلْخُدْرِيِّ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ إِيَّاكُمْ وَالْجُلُوسَ بِالطُّرُقَاتِ.‏ 
قَالُوا: يَا رَسُولَ اَللَّهِ! مَا لَنَا بُدٌّ مِنْ مَجَالِسِنَا; نَتَحَدَّثُ فِيهَا.‏ 
قَالَ
" فَأَمَّا إِذَا أَبَيْتُمْ, فَأَعْطُوا اَلطَّرِيقَ حَقَّهُ.‏ 
قَالُوا: وَمَا حَقُّهُ? 
قَالَ:" غَضُّ اَلْبَصَرِ, وَكَفُّ اَلْأَذَى, وَرَدُّ اَلسَّلَامِ, وَالْأَمْرُ بِالْمَعْرُوفِ, وَالنَّهْيُ عَنْ اَلْمُنْكَرِ.‏ } مُتَّفَقٌ عَلَيْهِ .‏ 1‏ .‏‏1 ‏- صحيح رواه البخاري (6229)‏، ومسلم (2121)‏.‏