Mujahid reported,

Ibn Umar was approached and told, "The Messenger of Allah ﷺ has entered the Kaabah."Ibn Umar said, "I came, but the Prophet ﷺ had already left. I found Bilal standing between the two doors, so I asked him, 'Did the Prophet ﷺ pray inside the Kaabah?'Bilal replied, 'Yes, two rakahs between the two pillars that are on your left as you enter. Then he came out and prayed two rakahs facing the Kaabah.'"

Bukhari 397

Sahih

حدثنا مسدد قال حدثنا يحيى عن سيف يعني ابن سليمان قال سمعت

مجاهدا قال

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

البخاري 397صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Saying of Allah the Exalted, "And take the standing place of Ibrahim as a place of prayer"
Numbering
Darussalam 397
Bukhari 397