Translation
(25) Hajj (Pilgrimage)
كتاب الحج
(38) Chapter: Taking a bath on entering Makkah
(38) باب الاِغْتِسَالِ عِنْدَ دُخُولِ مَكَّةَ
Sahih al-Bukhari 1573 

Narrated Nafi`:

On reaching the sanctuary of Mecca, Ibn `Umar used to stop, reciting Talbiya and then he would pass the night at Dhi-Tuwa and then offer the Fajr prayer and take a bath. He used to say that the Prophet (ﷺ) used to do the same.

حَدَّثَنِي يَعْقُوبُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا ابْنُ عُلَيَّةَ، أَخْبَرَنَا أَيُّوبُ، عَنْ نَافِعٍ، قَالَ كَانَ ابْنُ عُمَرَ ـ رضى الله عنهما ـ إِذَا دَخَلَ أَدْنَى الْحَرَمِ أَمْسَكَ عَنِ التَّلْبِيَةِ، ثُمَّ يَبِيتُ بِذِي طُوًى، ثُمَّ يُصَلِّي بِهِ الصُّبْحَ وَيَغْتَسِلُ، وَيُحَدِّثُ أَنَّ نَبِيَّ اللَّهِ صلى الله عليه وسلم كَانَ يَفْعَلُ ذَلِكَ‏.‏
Reference : Sahih al-Bukhari 1573
In-book reference : Book 25, Hadith 59
USC-MSA web (English) reference : Vol. 2, Book 26, Hadith 643
  (deprecated numbering scheme)