When the Prophet (ﷺ) entered the Ka`ba, he invoked Allah in each and every side of it and did not pray till he came out of it, and offered a two-rak`at prayer facing the Ka`ba and said, "This is the Qibla."
Reference: Sahih al-Bukhari 398 In-book : Book 8, Hadith 49 USC-MSA web (English) : Vol. 1, Book 8, Hadith 391 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.