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."
حدثنا إسحاق بن نصر قال حدثنا عبد الرزاق أخبرنا ابن جريج عن عطاء قال سمعت
لما دخل النبي ﷺ البيت دعا في نواحيه كلها ولم يصل حتى خرج منه فلما خرج ركع ركعتين في قبل الكعبة وقال هذه القبلة