"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."
سَمِعْتُ ابْنَ عُمَرَ يَقُولُ لَمَّا قَدِمَ رَسُولُ اللَّهِ ﷺ مَكَّةَ طَافَ بِالْبَيْتِ سَبْعًا ثُمَّ صَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ ثُمَّ خَرَجَ إِلَى الصَّفَا مِنَ الْبَابِ الَّذِي يُخْرَجُ مِنْهُ فَطَافَ بِالصَّفَا وَالْمَرْوَةِ قَالَ شُعْبَةُ وَأَخْبَرَنِي أَيُّوبُ عَنْ عَمْرِو بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ أَنَّهُ قَالَ سُنَّةٌ