Narrated Ibn Umar: The Prophet reached Mecca, circumambulated the Kaba seven times and then offered a two Rakat prayer behind Maqam ibrahim. Then he went towards the Safa. Allah has said, "Verily, in Allah's Apostle you have a good example."
— Sahih Bukhari, Volume 2, Book 26: Pilgrimmage (Hajj), Hadith #693