Language:
كتاب التقصير
18  
Shortening the Prayers (At-Taqseer)
(3)
Chapter: How long did the Prophet (pbup) stay during the Hajj?
(3)
باب كَمْ أَقَامَ النَّبِيُّ صلى الله عليه وسلم فِي حَجَّتِهِ
Sahih al-Bukhari 1085

Narrated Ibn `Abbas:

The Prophet (ﷺ) and his companions reached Mecca in the morning of the 4th Dhul-Hijja reciting Talbiya (O Allah! We are obedient to your orders, we respond 4 to your call) . . . intending to perform Hajj. The Prophet (ﷺ) ordered his companions to assume the lhram for Umra instead of Hajj, excepting those who had Hadi (sacrifice) with them.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، قَالَ حَدَّثَنَا وُهَيْبٌ، قَالَ حَدَّثَنَا أَيُّوبُ، عَنْ أَبِي الْعَالِيَةِ الْبَرَّاءِ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَدِمَ النَّبِيُّ صلى الله عليه وسلم وَأَصْحَابُهُ لِصُبْحِ رَابِعَةٍ يُلَبُّونَ بِالْحَجِّ، فَأَمَرَهُمْ أَنْ يَجْعَلُوهَا عُمْرَةً إِلاَّ مَنْ مَعَهُ الْهَدْىُ‏.‏ تَابَعَهُ عَطَاءٌ عَنْ جَابِرٍ‏.‏
Reference : Sahih al-Bukhari 1085
In-book reference : Book 18, Hadith 6
USC-MSA web (English) reference : Vol. 2, Book 20, Hadith 191
  (deprecated numbering scheme)