صحيح البخاري Sahih Bukhari كتاب الصلاة The Book of As-Salat (The Prayer)
بَابُ قَوْلِ اللَّهِ تَعَالَى: {وَاتَّخِذُوا مِنْ مَقَامِ إِبْرَاهِيمَ مُصَلًّى} :

(30) Chapter. The Statement of Allah: “... And take you (people) the Maqam (place) of Ibrahim (Abraham) (or the stone on which Abrahim stood while he was building the Kabah) as a place of prayer (for some of your Salat e.g., two Raka after the Tawaf of Kabah)...”

4 hadith
Hadith 395
حَدَّثَنَا الْحُمَيْدِيُّ ، قَالَ : حَدَّثَنَا سُفْيَانُ ، قَالَ : حَدَّثَنَا عَمْرُو بْنُ دِينَارٍ ، قَالَ : سَأَلْنَا ابْنَ عُمَرَ ، عَنْ رَجُلٍ طَافَ بِالْبَيْتِ الْعُمْرَةَ وَلَمْ يَطُفْ بَيْنَ الصَّفَا وَالْمَرْوَةِ ، أَيَأْتِي امْرَأَتَهُ ؟ فَقَالَ : " قَدِمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، فَطَافَ بِالْبَيْتِ سَبْعًا ، وَصَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ ، وَطَافَ بَيْنَ الصَّفَا وَالْمَرْوَةِ ، وَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ ".
Narrated `Amr bin Dinar: I asked Ibn `Umar, "Can a person who has performed the Tawaf around the Ka`ba for `Umra but has not performed the (Sa`i) Tawaf of Safa and Marwa, have a sexual relation with his wife?" Ibn `Umar replied "When the Prophet reached Mecca he performed the Tawaf around the Ka`ba (circumambulated it seven times) and offered a two-rak`at prayer (at the place) behind the station (of Abraham) and then performed the Tawaf (Sa`i) of Safa and Marwa, and verily in Allah's Apostle you have a good example."
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 395
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 396
وَسَأَلْنَا جَابِرَ بْنَ عَبْدِ اللَّهِ ، فَقَالَ : لَا يَقْرَبَنَّهَا حَتَّى يَطُوفَ بَيْنَ الصَّفَا وَالْمَرْوَةِ .
Then we put the same question to Jabir bin `Abdullah and he too replied, "He should not go near his wife (for sexual relation) till he has finished the Tawaf of Safa and Marwa."
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 396
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 397
حَدَّثَنَا مُسَدَّدٌ ، قَالَ : حَدَّثَنَا يَحْيَى ، عَنْ سَيْفٍ ، قَالَ : سَمِعْتُ مُجَاهِدًا ، قَالَ : أُتِيَ ابْنُ عُمَرَ ، فَقِيلَ لَهُ : هَذَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ دَخَلَ الْكَعْبَةَ ، فَقَالَ ابْنُ عُمَرَ : فَأَقْبَلْتُ وَالنَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَدْ خَرَجَ وَأَجِدُ بِلَالًا قَائِمًا بَيْنَ الْبَابَيْنِ ، فَسَأَلْتُ بِلَالًا ، فَقُلْتُ : أَصَلَّى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي الْكَعْبَةِ ؟ قَالَ : نَعَمْ ، رَكْعَتَيْنِ " بَيْنَ السَّارِيَتَيْنِ اللَّتَيْنِ عَلَى يَسَارِهِ إِذَا دَخَلْتَ ، ثُمَّ خَرَجَ فَصَلَّى فِي وَجْهِ الْكَعْبَةِ رَكْعَ تَيْنِ " .
Narrated Mujahid: Someone came to Ibn `Umar and said, "Here is Allah's Apostle entering the Ka`ba." Ibn `Umar said, "I went there but the Prophet had come out of the Ka`ba and I found Bilal standing between its two doors. I asked Bilal, 'Did the Prophet pray in the Ka`ba?' Bilal replied, 'Yes, he prayed two rak`at between the two pillars which are to your left on entering the Ka`ba. Then Allah's Apostle came out and offered a two-rak`at prayer facing the Ka`ba.' "
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 397
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 398
حَدَّثَنَا إِسْحَاقُ بْنُ نَصْرٍ ، قَالَ : حَدَّثَنَا عَبْدُ الرَّزَّاقِ ، أَخْبَرَنَا ابْنُ جُرَيْجٍ ، عَنْ عَطَاءٍ ، قَالَ : سَمِعْتُ ابْنَ عَبَّاسٍ ، قَالَ : " لَمَّا دَخَلَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا ، وَلَمْ يُصَلِّ حَتَّى خَرَجَ مِنْهُ ، فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ ، وَقَالَ : هَذِهِ الْقِبْلَةُ " .
Narrated Ibn `Abbas: When the Prophet entered the Ka`ba, he invoked Allah in each and every side of it and did not pray till he came out of it, and offered a two-rak`at prayer facing the Ka`ba and said, "This is the Qibla."
Hadith Reference Sahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 398
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة