Language:
كتاب الصلاة
8  
Prayers (Salat)
(97)
Chapter
(97)
باب
Sahih al-Bukhari 506
Narrated Nafi':
Whenever 'Abdullah entered the Ka'bah, he used to go ahead leaving the door of the Ka'bah behind him. He would proceed on till the remaining distance between him and the opposite wall about three cubits. Then he would off prayer there where the Prophet (ﷺ) had offered Salat, as Bilal informed me. Ibn 'Umar said, "It does not matter for any of us to offer prayers at any place inside the Ka'bah."
حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، قَالَ حَدَّثَنَا أَبُو ضَمْرَةَ، قَالَ حَدَّثَنَا مُوسَى بْنُ عُقْبَةَ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ، كَانَ إِذَا دَخَلَ الْكَعْبَةَ مَشَى قِبَلَ وَجْهِهِ حِينَ يَدْخُلُ، وَجَعَلَ الْبَابَ قِبَلَ ظَهْرِهِ، فَمَشَى حَتَّى يَكُونَ بَيْنَهُ وَبَيْنَ الْجِدَارِ الَّذِي قِبَلَ وَجْهِهِ قَرِيبًا مِنْ ثَلاَثَةِ أَذْرُعٍ، صَلَّى يَتَوَخَّى الْمَكَانَ الَّذِي أَخْبَرَهُ بِهِ بِلاَلٌ أَنَّ النَّبِيَّ صلى الله عليه وسلم صَلَّى فِيهِ‏.‏ قَالَ وَلَيْسَ عَلَى أَحَدِنَا بَأْسٌ إِنْ صَلَّى فِي أَىِّ نَوَاحِي الْبَيْتِ شَاءَ‏.‏
Reference : Sahih al-Bukhari 506
In-book reference : Book 8, Hadith 153
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 484
  (deprecated numbering scheme)