Anas bin Malik reported,

Ali رضي الله عنه arrived from Yemen, and the Prophet ﷺ asked him, "With what did you enter ihram?"He replied, "With the same intention as the Prophet ﷺ."The Prophet ﷺ said, "Had I not brought the sacrificial animal with me, I would have exited ihram."

Azami 4915

Sahih

عن أنس بن مالك قال

قدم علي رضي الله عنه من اليمن فقال له النبي ﷺ: بم أهللت؟ قال: بما أهل به النبي ﷺ قال: لولا أن معي الهدي لأحللت.

الأعظمي 4915صحيح
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
Prophet ﷺ commanding in Makkah to annul Hajj for those who did not have a sacrificial animal
Numbering
Jami al-Kamil 4915 (2nd edition)
Azami 4915