It is recommended for pilgrims and others to enter the Ka'bah and pray therein, and supplicate in all its corners Sahih Muslim 1329 c

Arabic hadith text
وَحَدَّثَنَا ابْنُ أَبِي عُمَرَ، حَدَّثَنَا سُفْيَانُ، عَنْ أَيُّوبَ السَّخْتِيَانِيِّ، عَنْ نَافِعٍ، عَنِ ابْنِ، عُمَرَ قَالَ أَقْبَلَ رَسُولُ اللَّهِ صلى الله عليه وسلم عَامَ الْفَتْحِ عَلَى نَاقَةٍ لأُسَامَةَ بْنِ زَيْدٍ حَتَّى أَنَاخَ بِفِنَاءِ الْكَعْبَةِ ثُمَّ دَعَا عُثْمَانَ بْنَ طَلْحَةَ فَقَالَ ‏"‏ ائْتِنِي بِالْمِفْتَاحِ ‏"‏ ‏.‏ فَذَهَبَ إِلَى أُمِّهِ فَأَبَتْ أَنْ تُعْطِيَهُ فَقَالَ وَاللَّهِ لَتُعْطِينِيهِ أَوْ لَيَخْرُجَنَّ هَذَا السَّيْفُ مِنْ صُلْبِي - قَالَ - فَأَعْطَتْهُ إِيَّاهُ ‏.‏ فَجَاءَ بِهِ إِلَى النَّبِيِّ صلى الله عليه وسلم فَدَفَعَهُ إِلَيْهِ فَفَتَحَ الْبَابَ ‏.‏ ثُمَّ ذَكَرَ بِمِثْلِ حَدِيثِ حَمَّادِ بْنِ زَيْدٍ
Translation
lbn Umar (Allah be pleased with them) reported

Allah's Messenger (ﷺ) came daring the year of Victory on the she-camel of Usama b. Zaid until he made her kneel down in the courtyard of the Ka'ba (and got down). He then sent for 'Uthman b. Talha and said: Bring me the key. He went to his mother and she refused to give that to him. He said: By Allah, give that to him or this sword would be thrust into my side. So she gave that to him, and he came with that to Allah's Apostle (ﷺ) and gave that to him, and he opened the door. The rest of the hadith is the same as the above one.