Amr bin Dinar (may Allah have mercy on him) said: We asked Sayyiduna Ibn Umar (may Allah be pleased with him) about a man who circumambulated the House (of Allah) but did not go between al-Safa and al-Marwah, and then had intercourse with his wife. Sayyiduna Ibn Umar (may Allah be pleased with him) said: When the Messenger of Allah (peace and blessings be upon him) came, he circumambulated the House (of Allah) seven times, then prayed two rak'ahs behind the Station of Ibrahim, and went between al-Safa and al-Marwah; and Allah Almighty said: "There has certainly been for you in the Messenger of Allah an excellent example" [Surah al-Ahzab: 21]. Amr (may Allah have mercy on him) said: I asked Sayyiduna Jabir bin Abdullah (may Allah be pleased with him), and he said that he should not have intercourse with his wife before going between al-Safa and al-Marwah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9804