The Prophet ﷺ would leave by way of the Shajarah road and enter by way of the Muarras road.
حدثنا عثمان بن أبي شيبة حدثنا أبو أسامة عن عبيد الله عن نافع
أن النبي ﷺ كان يخرج من طريق الشجرة ويدخل من طريق المعرس
Sourcing, [sahih] see the previous hadith. Ahmad narrated it in his Musnad, 2/142, from Abu Usama, with the same chain.