Abdullah bin Umar reported,

On the day of the Conquest, the Messenger of Allah ﷺ entered the Kaabah accompanied by Bilal and Uthman bin Shayb, and they closed the door from the inside. When they came out, I asked Bilal where the Messenger of Allah ﷺ had prayed.He told me that when the Messenger of Allah ﷺ entered, he prayed facing forward between the two pillars on his right.Afterwards I blamed myself for not having asked him how many units of prayer the Messenger of Allah ﷺ had performed.

Ibn Majah 3063

Sahih

حدثنا عبد الرحمن بن إبراهيم الدمشقي حدثنا عمر بن عبد الواحد عن الأوزاعي حدثني حسان بن عطية حدثني نافع

عن ابن عمر قال

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

ابن ماجه 3063صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rites of pilgrimage
Chapter
Entering the Kaaba
Numbering
Darussalam 3063
Ibn Majah 3063