Whenever Ibn `Umar entered the Ka`ba he used to walk straight keeping the door at his back…

Sahih al-Bukhari Book 25 Hadith 85

Sahih al-Bukhari #1599

Hajj (Pilgrimage) 25:85

Narrated Nafi`:

Whenever Ibn `Umar entered the Ka`ba he used to walk straight keeping the door at his back on entering, and used to proceed on till about three cubits from the wall in front of him, and then he would offer the prayer there aiming at the place where Allah's Messenger (ﷺ) prayed, as Bilal had told him. There is no harm for any person to offer the prayer at any place inside the Ka`ba.

Chapter: Offering As-Salat (the prayers) inside the Ka'bah

Grade: Sahih