Sunan an-Nasa'i, Volume 3, Book 24, Hadith 2806 (DarusSalam)

It was narrated that Aishah said: "We went out with the Messenger of Allah not thinking of anything but Hajj. When we drew close to Makkah, the Messenger of Allah ordered: 'Whoever has a Hadi with him should remain in Ihram, and whoever does not have a Hadi with him, he should exit Ihram."

أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ يَحْيَى، عَنْ عَمْرَةَ، عَنْ عَائِشَةَ، قَالَتْ خَرَجْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم لاَ نُرَى إِلاَّ أَنَّهُ الْحَجُّ فَلَمَّا دَنَوْنَا مِنْ مَكَّةَ أَمَرَ رَسُولُ اللَّهِ صلى الله عليه وسلم مَنْ كَانَ مَعَهُ هَدْىٌ أَنْ يُقِيمَ عَلَى إِحْرَامِهِ وَمَنْ لَمْ يَكُنْ مَعَهُ هَدْىٌ أَنْ يَحِلَّ ‏.‏

sunnah.com