Mishkat al-Masabih 691
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ دخل الْكَعْبَة وَأُسَامَة بن زيد وبلال وَعُثْمَان بن طَلْحَة الحَجبي فَأَغْلَقَهَا عَلَيْهِ وَمَكَثَ فِيهَا فَسَأَلْتُ بِلَالًا حِينَ خَرَجَ مَاذَا صَنَعَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: جعل عمودا عَن يَسَارِهِ وَعَمُودَيْنِ عَنْ يَمِينِهِ وَثَلَاثَةَ أَعْمِدَةٍ وَرَاءَهُ وَكَانَ الْبَيْتُ يَوْمَئِذٍ عَلَى سِتَّةِ أَعْمِدَةِ ثُمَّ صلى
And from ʿAbdullah ibn ʿUmar: The Messenger of Allah ﷺ entered the Kaʿbah with Usamah ibn Zayd, Bilal and ʿUthman ibn Talhah al-Hajabi, and he closed it upon himself and stayed in it. When Bilal came out I asked him what the Messenger of Allah ﷺ had done. He said: "He put one pillar on his left, two pillars on his right and three pillars behind him" — and the House at that time stood on six pillars — "then he prayed."