Amr bin Dinar reported,

We asked Ibn Umar about a man who performed the umrah by circling the House but did not walk between Safa and Marwa. Could he be intimate with his wife?He replied, "The Prophet ﷺ arrived, circled the House seven times, prayed two units of prayer behind the Station, and walked between Safa and Marwa. Indeed, you have in the Messenger of Allah an excellent example to follow."

Bukhari 395

Sahih

حدثنا الحميدي قال حدثنا سفيان قال حدثنا

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

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

البخاري 395صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Saying of Allah the Exalted, "And take the standing place of Ibrahim as a place of prayer"
Numbering
Darussalam 395
Bukhari 395