Sunan an-Nasa'i, Hadith 2990 ⓘ
It was narrated that Aishah said: "We went out with the Messenger of Allah with no intention but Hajj. When he had circumambulated the Hosue and performed Sai between As-Safa and Al-Marwah, he said: 'Whoever has a Hadi with him, let him remain in Ihram, and whoever does not have a Hadi with him, let him exit Ihram.'"
أَخْبَرَنَا مُحَمَّدُ بْنُ رَافِعٍ، عَنْ يَحْيَى، - وَهُوَ ابْنُ آدَمَ - عَنْ سُفْيَانَ، - وَهُوَ ابْنُ عُيَيْنَةَ - قَالَ حَدَّثَنِي عَبْدُ الرَّحْمَنِ بْنُ الْقَاسِمِ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، قَالَتْ خَرَجْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم لاَ نُرَى إِلاَّ الْحَجَّ - قَالَتْ - فَلَمَّا أَنْ طَافَ بِالْبَيْتِ وَبَيْنَ الصَّفَا وَالْمَرْوَةِ قَالَ " مَنْ كَانَ مَعَهُ هَدْىٌ فَلْيُقِمْ عَلَى إِحْرَامِهِ وَمَنْ لَمْ يَكُنْ مَعَهُ هَدْىٌ فَلْيَحْلِلْ " .
also referenced under: Book 24, Hadith 0 (In-Book) & Volume 3, Book 24, Hadith 2993 (DarusSalam)