Salim bin Hayan reported,

I heard Marwan Asfar narrate from Anas bin Malik, may Allah be pleased with him, who said, Ali, may Allah be pleased with him, came to the Prophet ﷺ from Yemen.The Prophet ﷺ asked, "With what intention did you enter the state of ihram?"Ali replied, "With the same intention as the Prophet ﷺ."The Prophet ﷺ said, "Were it not that I have brought the sacrificial animals with me, I would have come out of ihram."Muhammad bin Bakr added in his narration from Ibn Jurayj that the Prophet ﷺ said to him, "With what intention did you enter ihram, Ali?"He replied, "With the same intention as the Prophet ﷺ."The Prophet ﷺ said, "Then offer the sacrifice and remain in ihram as you are."

Bukhari 1558

Sahih

حدثنا الحسن بن علي الخلال الهذلي، حدثنا عبد الصمد، حدثنا

سليم بن حيان، قال

سمعت مروان الأصفر، عن أنس بن مالك رضى الله عنه قال قدم علي رضى الله عنه على النبي ﷺ من اليمن فقال بما أهللت. قال بما أهل به النبي ﷺ. فقال لولا أن معي الهدى لأحللت. وزاد محمد بن بكر عن ابن جريج قال له النبي ﷺ بما أهللت يا علي. قال بما أهل به النبي ﷺ قال فأهد وامكث حراما كما أنت.

البخاري 1558صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Whoever assumed ihram in the time of the Prophet ﷺ like the ihram of the Prophet ﷺ
Numbering
Darussalam 1558
Bukhari 1558