"إِنَّ النَّبِىَّ ﷺ لَمَّا دَخَلَ الْبَيْتَ دَعَا فِى نَوَاحِيه كُلِّهَا، وَلَمْ يُصَلِّ فِيه حَتَّى خَرَجَ فلما خرج رَكَعَ فِى قُبُلِ (* *) الْبَيْتِ رَكعَتَيْنِ، وَقَالَ: هَذِهِ الْقِبْلَةُ".
See similar narrations below:
Collected by Bukhārī, Muslim, Nasāʾī, Aḥmad, Ḥākim, Ibn Ḥibbān, Nasāʾī's Kubrá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."
لَمَّا دَخَلَ النَّبِيُّ ﷺ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ حَتَّى خَرَجَ مِنْهُ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ وَقَالَ هَذِهِ الْقِبْلَةُ
I said to 'Ata': Have you heard Ibn 'Abbas saying: You have been commanded to observe circumambulation, and not commanded to enter it (the Ka'ba)? He ('Ata') said: He (Ibn Abbas) (at the same time) did not forbid entrance into it. I, however, heard him saying: Usama b. Zaid informed me that when Allah's Apostle ﷺ entered the House, he supplicated in all sides of it; and he did not observe prayer therein till he came out, and as he came out he observed two rak'ahs in front of the House, and said: This is your Qibla. I said to him: What is meant by its sides? Does that mean its corners? He said: (In all sides and nooks of the House) there is Qibla.
أَنَّ النَّبِيَّ ﷺ لَمَّا دَخَلَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ فَلَمَّا خَرَجَ رَكَعَ فِي قُبُلِ الْبَيْتِ رَكْعَتَيْنِ وَقَالَ هَذِهِ الْقِبْلَةُ قُلْتُ لَهُ مَا نَوَاحِيهَا أَفِي زَوَايَاهَا قَالَ بَلْ فِي كُلِّ قِبْلَةٍ مِنَ الْبَيْتِ
"I head Ibn Abbas sya: 'Usmah bin Zaid told me that the Prophet entered the YHouse, and supplicated in all its corner, but he did not pray inside unitl he came out; when he came out he prayed two Rakahs in front of the Kabah.'"
أَنَّ النَّبِيَّ ﷺ دَخَلَ الْبَيْتَ فَدَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ مِنْهُ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ
"I head Ibn Abbas sya: 'Usmah bin Zaid told me that the Prophet entered the YHouse, and supplicated in all its corner, but he did not pray inside unitl he came out; when he came out he prayed two Rakahs in front of the Kabah.'" (Using translation from Nasāʾī 2917)
أَنَّ النَّبِيَّ ﷺ لَمَّا دَخَلَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قِبَلِ الْكَعْبَةِ وَقَالَ هَذِهِ الْقِبْلَةُ
"I head Ibn Abbas sya: 'Usmah bin Zaid told me that the Prophet entered the YHouse, and supplicated in all its corner, but he did not pray inside unitl he came out; when he came out he prayed two Rakahs in front of the Kabah.'" (Using translation from Nasāʾī 2917)
أَنَّ النَّبِيَّ ﷺ لَمَّا دَخَلَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قِبَلِ الْكَعْبَةِ قَالَ عَبْدُ الرَّزَّاقِ وَقَالَ هَذِهِ الْقِبْلَةُ
[Machine] "That the Prophet ﷺ entered the house, and when he came out, he performed two raka'ahs (units of prayer) facing the direction of the house and said, 'This is the qibla (direction of prayer).'"
أَنَّ النَّبِيَّ ﷺ دَخَلَ الْبَيْتَ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْبَيْتِ وَقَالَ «هَذِهِ الْقِبْلَةُ»
ذِكْرُ خَبَرٍ ثَانٍ يُصَرِّحْ بِنَفْيِ هَذَا الْفِعْلِ الَّذِي ذَكَرْنَاهُ
[Machine] Upon entering the house, the Messenger of Allah ﷺ supplicated in all of its corners and did not pray inside it until he came out and prayed by the door, saying, "Here is the Qiblah, pray towards it."
أَنَّ رَسُولَ اللَّهِ ﷺ لَمَّا دَخَلَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ فَصَلَّى عِنْدَ الْبَابِ وَقَالَ «هَاهُنَا قِبْلَةٌ» فَصَلِّهِ
"I head Ibn Abbas sya: 'Usmah bin Zaid told me that the Prophet entered the YHouse, and supplicated in all its corner, but he did not pray inside unitl he came out; when he came out he prayed two Rakahs in front of the Kabah.'" (Using translation from Nasāʾī 2917)
أَنَّ النَّبِيَّ ﷺ «دَخَلَ الْبَيْتَ فَدَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ فِيهِ حَتَّى خَرَجَ مِنْهُ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ»