"When the Prophet arrived in Makkah, he entered the Masjid and touched the (Black) Stone, then went to his right and performed Raml (walking quickly) for three (circuits) and walking for four. Then he came to the Maqam and said: 'And take you (people) the Maqam (place) of Ibrahim as a place of prayer.' Then he performed two Rak'ah while the Maqam was between him and the House. Then he came to the (Black) Stone after the two Rak'ah to touch it, then he left to As-Safa - I think - he said: Indeed As-Safa and Al-Marwah are among the symbols of Allah."
لَمَّا قَدِمَ النَّبِيُّ ﷺ مَكَّةَ دَخَلَ الْمَسْجِدَ فَاسْتَلَمَ الْحَجَرَ ثُمَّ مَضَى عَلَى يَمِينِهِ فَرَمَلَ ثَلاَثًا وَمَشَى أَرْبَعًا ثُمَّ أَتَى الْمَقَامَ فَقَالَ (وَاتَّخِذُوا مِنْ مَقَامِ إِبْرَاهِيمَ مُصَلًّى ) فَصَلَّى رَكْعَتَيْنِ وَالْمَقَامُ بَيْنَهُ وَبَيْنَ الْبَيْتِ ثُمَّ أَتَى الْحَجَرَ بَعْدَ الرَّكْعَتَيْنِ فَاسْتَلَمَهُ ثُمَّ خَرَجَ إِلَى الصَّفَا أَظُنُّهُ قَالََّ ( إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ ) قَالَ وَفِي الْبَابِ عَنِ ابْنِ عُمَرَ