Ibn Umar said:
When the Messenger of Allah arrived in Makkah he circumambulated the House seven times, then he prayed two Rakahs behind the Maqam. Then, he went out to As-Safa through the gate that is usually used to exit, and performed Sai between As-Safa and Al-Marwah. (One of the narrators Shubah said: Ayub informed me from Amr bin Dinar from Ibn Umar that he said: A Sunnah.