Sahih al-Bukhari 1085
Sahih al-Bukhari · Book 18: Shortening the Prayers (At-Taqseer) · How long did the Prophet (pbup) stay during the Hajj?
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.