(15) باب خُرُوجِ النَّبِيِّ صلى الله عليه وسلم عَلَى طَرِيقِ الشَّجَرَةِ
Narrated Ibn `Umar:
Allah's Messenger (ﷺ) used to go (for Hajj) via Ash-Shajara way and return via Muarras way; and no doubt, whenever Allah's Messenger (ﷺ) went to Mecca, he used to offer the prayer in the Mosque of Ash-Shajara; and on his return, he used to offer the prayer at Dhul-Hulaifa in the middle of the valley, and pass the night there till morning.
Reference: Sahih al-Bukhari 1533
In-book reference: Book 25, Hadith 21
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 26, Hadith 608