Amr bin Dinar reported,

We asked Ibn Umar رضي الله عنه about a man who performed tawaf around the House during umrah but did not walk between Safa and Marwa, whether he could be intimate with his wife.He replied, "The Prophet ﷺ arrived and performed tawaf around the House seven times, prayed two units of prayer behind the Station, then walked between Safa and Marwa seven times. 'You have indeed in the Messenger of Allah an excellent example to follow' [Ahzab 33:21]."

Bukhari 1645

Sahih

حدثنا علي بن عبد الله حدثنا سفيان

عن عمرو بن دينار قال

سألنا ابن عمر رضي الله عنه عن رجل طاف بالبيت في عمرة ولم يطف بين الصفا والمروة أيأتي امرأته فقال قدم النبي ﷺ فطاف بالبيت سبعا وصلى خلف المقام ركعتين فطاف بين الصفا والمروة سبعا {لقد كان لكم في رسول الله أسوة حسنة}

البخاري 1645صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Saiy between Safa and Marwa
Numbering
Darussalam 1645
Bukhari 1645