كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(61)
Chapter: Sending 'Ali and Khalid رضي الله عنهما to Yemen
(61)
باب بَعْثُ عَلِيِّ بْنِ أَبِي طَالِبٍ ـ عَلَيْهِ السَّلاَمُ ـ وَخَالِدِ بْنِ الْوَلِيدِ ـ رضى الله عنه ـ إِلَى الْيَمَنِ قَبْلَ حَجَّةِ الْوَدَاعِ
Sahih al-Bukhari 4353, 4354

Narrated Ibn `Umar:

The Prophet (ﷺ) assumed the state of Ihram for Umra and Hajj, and we to assumed it for Hajj with him. When we arrived at Mecca, the Prophet (ﷺ) said, "Whoever does not possess a Hadi should regard his Ihram for Umra only." The Prophet (ﷺ) had a Hadi with him. `Ali bin Abi Talib came to us from Yemen with the intention of performing Hajj. The Prophet (ﷺ) said (to him), "With what intention have you assumed the Ihram, for your wife is with us?" `Ali said, "I assumed the lhram with the same intention as that of the Prophet (ﷺ) ." The Prophet (ﷺ) said, "Keep on the state of lhram, as we have got the Hadi."

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا بِشْرُ بْنُ الْمُفَضَّلِ، عَنْ حُمَيْدٍ الطَّوِيلِ، حَدَّثَنَا بَكْرٌ، أَنَّهُ ذَكَرَ لاِبْنِ عُمَرَ أَنَّ أَنَسًا حَدَّثَهُمْ أَنَّ النَّبِيَّ صلى الله عليه وسلم أَهَلَّ بِعُمْرَةٍ وَحَجَّةٍ، فَقَالَ أَهَلَّ النَّبِيُّ صلى الله عليه وسلم بِالْحَجِّ، وَأَهْلَلْنَا بِهِ مَعَهُ، فَلَمَّا قَدِمْنَا مَكَّةَ قَالَ ‏"‏ مَنْ لَمْ يَكُنْ مَعَهُ هَدْىٌ فَلْيَجْعَلْهَا عُمْرَةً ‏"‏‏.‏ وَكَانَ مَعَ النَّبِيِّ صلى الله عليه وسلم هَدْىٌ، فَقَدِمَ عَلَيْنَا عَلِيُّ بْنُ أَبِي طَالِبٍ مِنَ الْيَمَنِ حَاجًّا فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ بِمَ أَهْلَلْتَ فَإِنَّ مَعَنَا أَهْلَكَ ‏"‏‏.‏ قَالَ أَهْلَلْتُ بِمَا أَهَلَّ بِهِ النَّبِيُّ صلى الله عليه وسلم‏.‏ قَالَ ‏"‏ فَأَمْسِكْ، فَإِنَّ مَعَنَا هَدْيًا ‏"‏‏.‏
Reference : Sahih al-Bukhari 4353, 4354
In-book reference : Book 64, Hadith 380
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 640
  (deprecated numbering scheme)