The Prophet PBUH said, “Beware! Avoid sitting on the roads (ways).”
The people said, “There is no way out of it as these are our sitting places where we have talks.”
The Prophet PBUH said , “If you must sit there, then observe the rights of the way.”
They asked, “What are the rights of the way?”
The Prophet PBUH 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.”
[Bukhari, Vol 3, B 43, Number 645: Narrated Abu Said Al-Khudri]