It was narrated from Abdullah bin Umar that the Messenger of Allah (ﷺ) entered the Ka'bah with Usamah bin Zaid, Bilal and Uthman bin Talha al Hajabi, and locked the door behind him. Abdullah bin Umar said: "I asked Bilal when he came out: " What did the Messenger of Allah (ﷺ) do?" He said: "He stood with one pillar to his left, two pillars to his right and three pillars behind him - at that time the House stood on six pillars - and he prayed with approximately three forearm's length between him and the wall."
Reference: Sunan an-Nasa'i 749 In-book : Book 9, Hadith 8 English translation : Vol. 1, Book 9, Hadith 750
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.