The Messenger of Allah ﷺ used to stop at Dhu Tuwa and spend the night there until he prayed the dawn prayer when arriving in Makkah. The place where the Messenger of Allah ﷺ prayed was on a rugged hillock, not at the mosque that was later built there, but lower down, on a rugged hillock.
أن رسول الله ﷺ كان ينزل بذي طوى ويبيت به حتى يصلي الصبح حين يقدم مكة ومصلى رسول الله ﷺ ذلك على أكمة غليظة ليس في المسجد الذي بني ثم، ولكن أسفل من ذلك، على أكمة غليظة.
Bukhari narrated it in the Book of Prayer (491), and Muslim in the Book of Hajj (1259:228), both through the route of Anas bin Iyad, who said, "Musa bin Uqba narrated to us, from Nafi, that Abdullah told him," and so he related it. The wording given here is Muslim's.His saying, "at Dhu Tuwa," the letter ta (ط, the undotted form) carries a damma, followed by a waw, and it ends with a shortened alif. It is the name of a valley lying between the cemetery of Hajun in Mala and the pass of Kahl, known as Thaniyyah Khadra, in what is now the district of Jarwal.