AbuUsayd heard the Messenger of Allah (ﷺ) say when he was coming out of the mosque, and men and women were mingled in the road: Draw back, for you must not walk in the middle of the road; keep to the sides of the road. Then women were keeping so close to the wall that their garments were rubbing against it.
Sunan Abi Dawud Book 43, Hadith 500