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."
Hadith Referenceاللؤلؤ والمرجان / كتاب الحج / 839
Hadith Gradingمحدثین:«صحیح»
Hadith Takhrij«صحیح، أخرجه البخاري في: 8 كتاب الصلاة: 30 باب قول الله تعالى (واتخذوا من مقام إبراهيم مصلى»