Sahih al-Bukhari 1625
Sahih al-Bukhari · Book 25: Hajj (Pilgrimage) · Whoever did not go near the Ka'bah and did not perform Tawaf of the Ka'bah after the first Tawaf performed on entering Makkah till he proceeded to 'Arafat and returned
Narrated Ibn `Abbas:
حَدَّثَنَا مُحَمَّدُ بْنُ أَبِي بَكْرٍ ، حَدَّثَنَا فُضَيْلٌ ، حَدَّثَنَا مُوسَى بْنُ عُقْبَةَ ، أَخْبَرَنِي كُرَيْبٌ ، عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَدِمَ النَّبِيُّ صلى الله عليه وسلم مَكَّةَ، فَطَافَ وَسَعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ، وَلَمْ يَقْرَبِ الْكَعْبَةَ بَعْدَ طَوَافِهِ بِهَا حَتَّى رَجَعَ مِنْ عَرَفَةَ.
The Prophet (ﷺ) arrived at Mecca and performed Tawaf of the Ka`ba and Sa`i between Safa and Marwa, but he did not go near the Ka`ba after his Tawaf till he returned from `Arafat.