Abdullah bin Umar reported,

The Messenger of Allah ﷺ used to leave by way of the Shajarah road and return by way of the Muarras road. When he set out for Makkah, he would pray at the mosque of Shajarah, and on his return he would pray at Dhul Hulayfah in the valley floor and spend the night there until morning.

Bukhari 1533

Sahih

حدثنا إبراهيم بن المنذر حدثنا أنس بن عياض عن عبيد الله عن نافع

عن عبد الله بن عمر رضي الله عنهما

أن رسول الله ﷺ كان يخرج من طريق الشجرة ويدخل من طريق المعرس وأن رسول الله ﷺ كان إذا خرج إلى مكة يصلي في مسجد الشجرة وإذا رجع صلى بذي الحليفة ببطن الوادي وبات حتى يصبح

البخاري 1533صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Departure of the Prophet ﷺ by way of Shajarah
Numbering
Darussalam 1533
Bukhari 1533