Al-Ilmam bi-Ahadith al-Ahkam 582
وَعَن سَالم بن عبد الله بن عمر أَن ابْن عمر قَالَ: " تمتّع رَسُول الله ﷺ فِي حجَّة الْوَدَاع بِالْعُمْرَةِ إِلَى الْحَج وَأهْدَى، وسَاق مَعَه الْهَدْي من ذِي الحليفة، وَبَدَأَ رَسُول الله ﷺ وَأهل بِالْعُمْرَةِ ثمَّ أهل بِالْحَجِّ، فتمتع النَّاس مَعَ رَسُول الله ﷺ بِالْعُمْرَةِ إِلَى الْحَج. فَكَانَ (من النَّاس) من أهْدَى فساق مَعَه الْهَدْي، وَمِنْهُم من لم يهد. فَلَمَّا قدم النبيُّ ﷺ مَكَّة قَالَ للنَّاس: من كَانَ مِنْكُم أهْدَى فَإِنَّهُ لَا يحل من شَيْء حرم مِنْهُ حَتَّى يُقْضَى حجه، وَمن لم يكن (مِنْكُم) أهْدَى فليطف بِالْبَيْتِ وبالصفا والمروة، وَيقصر، وليحلل، ثمَّ ليهلّ بِالْحَجِّ، فَمن لم يجد هَديا فليصم ثَلَاثَة أَيَّام فِي الْحَج ﷺ وَسَبْعَة إِذا رَجَعَ إِلَى أَهله، وَطَاف حِين قدم مَكَّة، واستلم الرُّكْن أول شَيْء، ثمَّ خبَّ ثَلَاثَة أطواف، وَمَشى أَرْبعا، وَركع حِين قَضَى طَوَافه بِالْبَيْتِ عِنْد الْمقَام رَكْعَتَيْنِ، ثمَّ سلم، فَانْصَرف، فَأَتَى الصَّفَا فَطَافَ بالصفا والمروة سَبْعَة أطواف، ثمَّ لم يحلل من شَيْء حَرُم مِنْهُ حَتَّى قَضَى حجه، وَنحر هَدْيه يَوْم النَّحْر، وأفاض فَطَافَ بِالْبَيْتِ، ثمَّ حل من كل شَيْء حرم مِنْهُ، وَفعل مثل مَا فعل رَسُول الله ﷺ من أهْدَى وسَاق الْهَدْي من النَّاس ". لفظ البُخَارِيّ، وَهُوَ مُتَّفق عَلَيْهِ.
And from Salim ibn ʿAbdullah ibn ʿUmar, that Ibn ʿUmar said: "In the Farewell Hajj the Messenger of Allah ﷺ performed tamattuʿ of ʿUmrah followed by Hajj, and he offered a sacrificial animal, driving the sacrificial animal with him from Dhul-Hulayfah. The Messenger of Allah ﷺ began and entered ihram for ʿUmrah, then entered ihram for Hajj, and the people performed tamattuʿ of ʿUmrah followed by Hajj with the Messenger of Allah ﷺ. (Among the people) were those who offered sacrificial animals and drove them along, and among them were those who did not. When the Prophet ﷺ arrived in Makkah, he said to the people: 'Whoever of you has brought a sacrificial animal, nothing that became forbidden to him becomes lawful until he completes his Hajj. And whoever (of you) has not brought a sacrificial animal, let him circle the House and [go between] as-Safa and al-Marwah, shorten [his hair] and leave ihram, then enter ihram for Hajj. Whoever does not find a sacrificial animal, let him fast three days during Hajj and seven when he returns to his family.' He circled [the House] when he arrived in Makkah, touching the Corner first, then he walked briskly for three circuits and walked [normally] for four. When he finished his circling of the House, he prayed two rakʿahs at the Maqam, then gave the salam and left, and came to as-Safa and went seven times between as-Safa and al-Marwah. Then nothing that had become forbidden to him became lawful until he completed his Hajj and sacrificed his animal on the day of sacrifice. He went quickly [to Makkah] and circled the House, then everything that had been forbidden to him became lawful. And those of the people who had offered and driven sacrificial animals did as the Messenger of Allah ﷺ did." The wording is al-Bukhari's, and it is agreed upon.