Sunan Abi Dawud, Hadith 2018

‘Abd Allaah bin Umar said “The Apostle of Allaah entered the Ka’bah and along with him entered Usamah bin Zaid, Uthman bin Talhah Al Hajabi and Bilal. He then closed the door and stayed there. ‘Abd Allah bin ‘Umar said “I asked Bilal when he came out What did the Apostle of Allaah do (there)? He replied “He stood with a pillar on his left, two pillars on his right, and three pillars behind him. At that time the House (the Ka’bah) stood on six pillars. He then prayed.

حَدَّثَنَا الْقَعْنَبِيُّ، عَنْ مَالِكٍ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم دَخَلَ الْكَعْبَةَ هُوَ وَأُسَامَةُ بْنُ زَيْدٍ وَعُثْمَانُ بْنُ طَلْحَةَ الْحَجَبِيُّ وَبِلاَلٌ فَأَغْلَقَهَا عَلَيْهِ فَمَكَثَ فِيهَا قَالَ عَبْدُ اللَّهِ بْنُ عُمَرَ فَسَأَلْتُ بِلاَلاً حِينَ خَرَجَ مَاذَا صَنَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم فَقَالَ جَعَلَ عَمُودًا عَنْ يَسَارِهِ وَعَمُودَيْنِ عَنْ يَمِينِهِ وَثَلاَثَةَ أَعْمِدَةٍ وَرَاءَهُ - وَكَانَ الْبَيْتُ يَوْمَئِذٍ عَلَى سِتَّةِ أَعْمِدَةٍ - ثُمَّ صَلَّى ‏.‏

sunnah.com

also referenced under: Hadith 2023 (DarusSalam)