When the Prophet (ﷺ) entered the Ka`ba, he invoked Allah in each and every side of it and…

Sahih al-Bukhari Book 8 Hadith 49

Sahih al-Bukhari #398

Prayers (Salat) 8:49

Narrated Ibn `Abbas:

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."

Chapter: The Statement of Allah " And take you (people) the Maqam (place) of Ibrahim (Abraham) (or the stone on which Abrahim stood while he was building the Kabah as a place of prayer (for some of your Salat e.g., two Raka after the Tawaf of Kabah)"

Grade: Sahih