(80) باب مَا جَاءَ فِي السَّعْىِ بَيْنَ الصَّفَا وَالْمَرْوَةِ
Narrated `Amr bin Dinar:
We asked Ibn `Umar whether a man who, while performing `Umra, had performed Tawaf of the Ka`ba; and had not yet performed Tawaf between Safa and Marwa, could have sexual relation with his wife, Ibn `Umar replied "The Prophet (p.b.u.h) reached Mecca and performed the seven rounds (of Tawaf) of the Ka`ba and then offered a two-rak`at prayer behind Maqam Ibrahim and then performed the seven rounds (of Tawaf) between Safa and Marwa." He added, "Verily! In Allah's Messenger (ﷺ) (p.b.u.h) you have a good example." We asked Jabir bin `Abdullah (the same question) and he said, "He (that man) should not come near (his wife) till he has completed Tawaf between Safa and Marwa."
Reference: Sahih al-Bukhari 1645, 1646
In-book reference: Book 25, Hadith 127
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 26, Hadith 708