Whenever Allah's Messenger (ﷺ) left for Mecca, he used to pray in the mosque of Ash-Shajra, and when he
returned (to Medina), he used to pray in the middle of the valley of Dhul-Hulaifa and used to pass the
night there till morning.
Sahih al-Bukhari Book 26, Hadith 24