Sahih al-Bukhari 1599
Book 25: Hajj (Pilgrimage) · Hadith 85
Hadith text
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
Nafi bataate hain: Jab bhi Ibn Umar Ka'ba mein daakhil hote, seedhe chalte, darwaza peeche chhodte huye, aur saamne wali deewar se taqreeban teen haath door jate, phir wahin namaz padhte, us jagah ka nishaana lekar jahan Allah ke Rasool ne namaz padhi thi, jaisa Bilal ne unhe bataya tha. Ka'ba ke andar kisi bhi jagah namaz padhne mein koi harj nahi.
Sahih al-Bukhari 1599 · Book 25, Hadith 85