(37) باب اسْتِحْبَابِ دُخُولِ مَكَّةَ مِنَ الثَّنِيَّةِ الْعُلْيَا وَالْخُرُوجِ مِنْهَا مِنَ الثَّنِيَّةِ السُّفْلَى وَدُخُولِ بَلْدَةٍ مِنْ طَرِيقٍ غَيْرِ الَّتِي خَرَجَ مِنْهَا
Ibn 'Umar reported that Allah's Messenger (ﷺ) used to come out (of Medina) by way of al-Shajarah and entered it by the way of al-Mu'arras and whenever he entered Mecca, he entered it from the upper side and went out of it from the lower side.
Reference: Sahih Muslim 1257 a
In-book reference: Book 15, Hadith 246
USC-MSA web (English) reference(deprecated numbering scheme): Book 7, Hadith 2886