The Prophet (ﷺ) prohibited that one, i.e. man, should walk between two women.

Sunan Abi Dawud Book 43, Hadith 501