839 صحيح حديث ابْنِ عَبَّاسٍ، قَالَ: لَمَّا دَخَلَ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ حَتَّى خَرَجَ مِنْهُ؛ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قِبَلِ الْكَعْبَةِ، وَقَالَ: هذِهِ الْقِبْلَةُ
Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrated that when the Prophet Muhammad (peace and blessings be upon him) entered the Ka'bah, he supplicated in all four corners but did not perform prayer. Then when he came out, he performed two units of prayer facing the Ka'bah and said: "This is the Qiblah."