Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "Beware of sitting in the roads." The Companions said: We must have our gatherings. He (peace and blessings be upon him) said: "If you must sit, then give the road its right." They said: What is the right of the road? He (peace and blessings be upon him) said: "Lowering the gaze, refraining from harm, returning the greeting, enjoining good and forbidding evil."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20205