Abu Talhah Zaid bin Sahl (May Allah be pleased with him) said:
We were sitting and talking on a platform in front of our house when the Messenger of Allah (ﷺ) stopped by us and said, "Why do you sit on roads? Avoid sitting in them." We replied: "We sit there intending no harm. We only sit and discuss (religious) knowledge and talk." He said, "If you have to sit, you should fulfill the rights of the road: Lower your gaze, respond to greetings and talk in a good manner."[Muslim]. (DE)
App reference (DE): Book 18, Hadith 114 (DE)
Arabic/English book reference (DE): Book 18, Hadith 1624 (DE)