Sunan Ibn Majah, Book 25, Hadith 78 (Ibn Majah 2961)
It was narrated from Ibn ‘Umar that the Messenger of Allah (ﷺ) came and performed Tawaf around the House seven times, then he prayed two Rak’ahs. Waki’ said:
“Meaning, at the Maqam,* then he went out to Safa.”