It is narrated from Ibn Umar (may Allah be pleased with them both) that he stated: The Messenger of Allah (ﷺ) entered (the Ka'bah). Bilal, Uthman bin Talhah, and (the narrator says) I think he said Usama (may Allah be pleased with them) were also with him (ﷺ). When he (ﷺ) came out, I asked Bilal (may Allah be pleased with him), "What did the Messenger of Allah (ﷺ) do (inside the House of Allah)?" He replied, "He (ﷺ) placed one pillar on his right side, two pillars on his left side, and three pillars behind him, then he (ﷺ) prayed, and at that time the roof of the House of Allah was supported by six pillars."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 181
Hadith Takhrijأخرجہ البخاری، الصلاۃ، باب الصلاۃ بین السواری فی غیر جماعۃ: 505 - ومسلم، الحج، باب استحباب دخول الکعبۃ للحاج وغیرہ، والصلاۃ فیہا والدعاء فی نواحیہا کلہا: 1329۔