Mujahid reported,

Ibn Umar came to his home, and someone said to him, "The Messenger of Allah ﷺ has just entered the Kaabah." So I set out and found that the Messenger of Allah ﷺ had already come out, and I found Bilal standing at the door.I asked, "Bilal, did the Messenger of Allah ﷺ pray inside the Kaabah?"He replied, "Yes."I asked, "Where?"He said, "Between these two columns, two units of prayer. Then he came out and prayed two more units facing the Kaabah."

Nasai 2911

Sahih

أخبرنا أحمد بن سليمان قال حدثنا أبو نعيم قال حدثنا سيف بن سليمان قال سمعت

مجاهدا يقول

أتي ابن عمر في منزله فقيل هذا رسول الله ﷺ قد دخل الكعبة فأقبلت فأجد رسول الله ﷺ قد خرج وأجد بلالا على الباب قائما فقلت يا بلال أصلى رسول الله ﷺ في الكعبة قال نعم قلت أين قال ما بين هاتين الأسطوانتين ركعتين ثم خرج فصلى ركعتين في وجه الكعبة

النسائي 2911صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Rituals of Hajj
Chapter
Place of prayer in the house
Numbering
Darussalam 2911
Nasai 2911