Sunan an-Nasa'i, Hadith 2966 ⓘ
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."
أَخْبَرَنَا مُحَمَّدُ بْنُ بَشَّارٍ، قَالَ حَدَّثَنَا مُحَمَّدٌ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ عَمْرِو بْنِ دِينَارٍ، قَالَ سَمِعْتُ ابْنَ عُمَرَ، يَقُولُ لَمَّا قَدِمَ رَسُولُ اللَّهِ صلى الله عليه وسلم مَكَّةَ طَافَ بِالْبَيْتِ سَبْعًا ثُمَّ صَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ ثُمَّ خَرَجَ إِلَى الصَّفَا مِنَ الْبَابِ الَّذِي يُخْرَجُ مِنْهُ فَطَافَ بِالصَّفَا وَالْمَرْوَةِ . قَالَ شُعْبَةُ وَأَخْبَرَنِي أَيُّوبُ عَنْ عَمْرِو بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ أَنَّهُ قَالَ سُنَّةٌ .
also referenced under: Book 24, Hadith 0 (In-Book) & Volume 3, Book 24, Hadith 2969 (DarusSalam)