The people used to go out (from Mecca after Hajj) by all sides. The Prophet (ﷺ) said: No one should leave (Mecca) until he performs the last circumambulation of the House (the Ka'bah).
Sunan Abi Dawud Book 11, Hadith 282