Abdullah bin Abbas reported,

When the Prophet ﷺ entered the House, he made supplication in all of its corners and did not pray until he came out. When he came out, he prayed two units of prayer facing the Kaabah and said, "This is the qiblah."

Bukhari 398

Sahih

حدثنا إسحاق بن نصر قال حدثنا عبد الرزاق أخبرنا ابن جريج عن عطاء قال سمعت

ابن عباس قال

لما دخل النبي ﷺ البيت دعا في نواحيه كلها ولم يصل حتى خرج منه فلما خرج ركع ركعتين في قبل الكعبة وقال هذه القبلة

البخاري 398صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Saying of Allah the Exalted, "And take the standing place of Ibrahim as a place of prayer"
Numbering
Darussalam 398
Bukhari 398