كتاب الحج
15
The Book of Pilgrimage
(38)
Chapter: It is recommended to stay overnight in Dhu Tuwa when intending to enter Makkah, and to perform Ghusl before entering it, and to enter it by day
(38)
باب اسْتِحْبَابِ الْمَبِيتِ بِذِي طَوًى عِنْدَ إِرَادَةِ دُخُولِ مَكَّةَ وَالاِغْتِسَالِ لِدُخُولِهَا نَهَارًا

Ibn Umar (Allah be pleased with him) reported that Allah's Messenger may peace be upon him) spent the night at Dhi Tuwa till it was dawn and then entered Mecca. 'Abdullah (b. 'Umar) himself did like it. And in the narration transmitted by Ibn Sa'ld (the words are):

Until he obrerved the dawn prayer. Yahya (another narrator) said: Until it was dawn.
حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، وَعُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، قَالاَ حَدَّثَنَا يَحْيَى، - وَهُوَ الْقَطَّانُ - عَنْ عُبَيْدِ اللَّهِ، أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم بَاتَ بِذِي طَوًى حَتَّى أَصْبَحَ ثُمَّ دَخَلَ مَكَّةَ ‏.‏ قَالَ وَكَانَ عَبْدُ اللَّهِ يَفْعَلُ ذَلِكَ ‏.‏ وَفِي رِوَايَةِ ابْنِ سَعِيدٍ حَتَّى صَلَّى الصُّبْحَ ‏.‏ قَالَ يَحْيَى أَوْ قَالَ حَتَّى أَصْبَحَ ‏.‏
Reference : Sahih Muslim 1259 a
In-book reference : Book 15, Hadith 250
USC-MSA web (English) reference : Book 7, Hadith 2889
  (deprecated numbering scheme)