كتاب المقدمات
The Book of Miscellany
(23)
Chapter: Enjoining Good and forbidding Evil
(23)
- باب الأمر بالمعروف والنهي عن المنكر
Riyad as-Salihin 190
Abu Sa'id Al-Khudri (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "Beware of sitting on roads (ways)." The people said: "We have but them as sitting places." Messenger of Allah (ﷺ) said, "If you have to sit there, then observe the rights of the way". They asked, "What are the rights of the way?" He (ﷺ) said, "To lower your gaze (on seeing what is illegal to look at), and (removal of harmful objects), returning greetings, enjoining good and forbidding wrong".

[Al-Bukhari and Muslim].

السابع‏:‏ عن أبي سعيد الخدري رضي الله عنه عن النبي صلى الله عليه وسلم قال‏:‏ ‏"‏إياكم والجلوس في الطرقات‏"‏ فقالوا ‏:‏ يا رسول الله ما لنا من مجالسنا بد؛ نتحدث فيها‏!‏ فقال رسول الله صلى الله عليه وسلم‏:‏ ‏"‏فإذا أبيتم إلا المجلس فأعطوا الطريق حقه‏"‏ قالوا‏:‏ وما حق الطريق يا رسول الله‏؟‏ قال‏:‏ ‏"‏غض البصر وكف الأذى ورد السلام، والأمر بالمعروف ، والنهي عن المنكر‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ ‏.‏
Reference : Riyad as-Salihin 190
In-book reference : Introduction, Hadith 190