We asked Ibn Umar about a person who came for Umra and circumambulated the House, but he did not run between al-Safa' and al-Marwa, whether he is allowed to (put off Ihram) and have intercourse with his wife. He replied: Messenger of Allah ﷺ circumambulated the House seven times and offered two rak'ahs of prayer after staying (at 'Arafat), and ran between al-Safa and al-Marwa seven times." Verily there is in Messenger of Allah a model pattern for you" (xxxill. 21). (Using translation from Muslim 1234a)
عَنْ مُعْتَمِرٍ قَدِمَ فَطَافَ بِالْبَيْتِ وَلَمْ يَطُفْ بَيْنَ الصَّفَا وَالْمَرْوَةِ أَيَأْتِي أَهْلَهُ؟ قَالَ «قَدِمَ رَسُولُ اللهِ ﷺ فَطَافَ بِالْبَيْتِ سَبْعًا وَصَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ وَطَافَ بَيْنَ الصَّفَا وَالْمَرْوَةِ سَبْعًا وَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللهِ ﷺ أُسْوَةٌ حَسَنَةٌ»