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.
قَدِمَ النَّبِيُّ ﷺ مَكَّةَ فَطَافَ وَسَعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ وَلَمْ يَقْرَبِ الْكَعْبَةَ بَعْدَ طَوَافِهِ بِهَا حَتَّى رَجَعَ مِنْ عَرَفَةَ