Ibn Abdullah Muzani reported,

It was mentioned to Ibn Umar that Anas had narrated to them that the Prophet ﷺ entered the state of ihram for both an Umra and a Hajj. Ibn Umar responded, "The Prophet ﷺ entered ihram for Hajj alone, and we entered ihram for it along with him. When we reached Mecca, he said, 'Whoever has not brought a sacrificial animal should make it an Umra.' The Prophet ﷺ had brought a sacrificial animal with him. Then Ali bin Abu Talib came to us from Yemen as a pilgrim, and the Prophet ﷺ asked him, 'For what have you entered ihram, since your family is here with us?'Ali replied, 'I entered ihram for what the Prophet ﷺ entered ihram for.'The Prophet ﷺ said, 'Then remain in your ihram, for we have a sacrificial animal with us.'"

Azami 4952

Sahih

عن بكر (هو ابن عبد الله المزني)

أنه ذكر لابن عمر: أن أنسا حدثهم أن النبي ﷺ أهل بعمرة وحجة، فقال أهل النبي ﷺ بالحج وأهللنا به معه فلما قدمنا مكة قال: من لم يكن معه هدي فليجعلها عمرة. وكان مع النبي ﷺ هدي، فقدم علينا علي بن أبي طالب من اليمن حاجا فقال النبي ﷺ: بم أهللت فإن معنا أهلك؟ قال: أهللت بما أهل به النبي ﷺ. قال: فأمسك فإن معنا هديا.

الأعظمي 4952صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
He who said the Prophet ﷺ performed hajj as ifrad
Numbering
Jami al-Kamil 4952 (2nd edition)
Azami 4952