Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah ﷺ entered the Kaba with Usama ibn Zayd, Bilal ibn Rabah and Uthman ibn Talha al-Hajabi and locked it behind him and stayed there for some time. Abdullah said that he asked Bilal when he came out what the Messenger of Allah had done there and he said, "He positioned himself with one support to his left, two supports to his right, and three behind him (the house had six supports at that time) and then he prayed."
أَنَّ رَسُولَ اللَّهِ ﷺ دَخَلَ الْكَعْبَةَ هُوَ وَأُسَامَةُ بْنُ زَيْدٍ وَبِلاَلُ بْنُ رَبَاحٍ وَعُثْمَانُ بْنُ طَلْحَةَ الْحَجَبِيُّ فَأَغْلَقَهَا عَلَيْهِ وَمَكَثَ فِيهَا قَالَ عَبْدُ اللَّهِ فَسَأَلْتُ بِلاَلاً حِينَ خَرَجَ مَا صَنَعَ رَسُولُ اللَّهِ ﷺ فَقَالَ جَعَلَ عَمُودًا عَنْ يَمِينِهِ وَعَمُودَيْنِ عَنْ يَسَارِهِ وَثَلاَثَةَ أَعْمِدَةٍ وَرَاءَهُ وَكَانَ الْبَيْتُ يَوْمَئِذٍ عَلَى سِتَّةِ أَعْمِدَةٍ ثُمَّ صَلَّى