Mishkat al-Masabih #642
mishkat_al_masabih:642عَنِ ابْنِ عَبَّاسٍ قَالَ: لَمَّا دَخَلَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ حَتَّى خَرَجَ مِنْهُ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ وَقَالَ: «هَذِه الْقبْلَة» . رَوَاهُ البُخَارِيّ وَرَوَاهُ مُسْلِمٌ عَنْهُ عَنْ أُسَامَةَ بْنِ زَيْدٍ
Ibn ‘Abbas said that when the Prophet entered the House (the Ka’ba) he made supplications in all sides of it, but did not perform salat till he had come out. When he came out he prayed two rak'as facing the Ka'ba and said, “This is the qibla.” Bukhari transmitted it and Muslim transmitted it from Ibn ‘Abbas from Usama b. Zaid.
لما دخل النبي البيت دعا في نواحيه كلها ولم يصل حتى خرج منه فلما خرج ركع ركعتين في قبل الكعبة وقال
ابن عباس