When the Prophet (ﷺ) came to Mecca he entered from its higher side and left from its lower side.
Sahih al-Bukhari Book 25, Hadith 63