(72) باب مَنْ صَلَّى رَكْعَتَىِ الطَّوَافِ خَلْفَ الْمَقَامِ
Narrated Ibn `Umar:
The Prophet (ﷺ) reached Mecca, circumambulated the Ka`ba seven times and then offered a two rak`at prayer behind Maqam Ibrahim. Then he went towards the Safa. Allah has said, "Verily, in Allah's Apostle you have a good example."
Reference: Sahih al-Bukhari 1627
In-book reference: Book 25, Hadith 111
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 26, Hadith 693