Mujahid reported,

Ibn Umar was at home when someone said to him, "The Messenger of Allah ﷺ has just entered the Kaabah."Ibn Umar said, "I set out, but by the time I arrived the Messenger of Allah ﷺ had already come out. I found Bilal standing between the two doors, so I asked him, 'Did the Prophet ﷺ pray inside the Kaabah?'Bilal replied, 'Yes. He prayed two rakahs between the two pillars on your left as you enter, then he came out and prayed two rakahs facing the Kaabah.'"

Azami 5302

Sahih

عن مجاهد، يقول

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

الأعظمي 5302صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Prayer in the Kaaba
Numbering
Jami al-Kamil 5302 (2nd edition)
Azami 5302