Amr bin Dinar reported,

We asked Ibn Umar رضي الله عنه about a man who arrived intending to perform Umra, circled the House, but did not walk between Safa and Marwa. Could he then approach his wife?He replied, "The Prophet ﷺ arrived, circled the House seven times, prayed two units behind the Station, then went out to Safa. And Allah the Exalted has said, 'Indeed, in the Messenger of Allah you have an excellent example to follow' [Ahzab 33:21]."

Azami 5053

Sahih

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

سألنا ابن عمر رضي الله عنه عن رجل قدم بعمرة فطاف بالبيت ولم يطف بين الصفا والمروة أيأتي امرأته فقال: قدم النبي ﷺ فطاف بالبيت سبعا وصلى خلف المقام ركعتين ثم خرج إلى الصفا وقد قال الله تعالى: {لقد كان لكم في رسول الله أسوة حسنة} [سورة الأحزاب: ٢١].

الأعظمي 5053صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Exiting ihram from Umrah is only after performing saee between Safa and Marwa
Numbering
Jami al-Kamil 5053 (2nd edition)
Azami 5053