ʿAli came to the Prophet ﷺ from Yemen (to Mecca). The Prophet ﷺ asked ʿAli, "With what intention have you assumed Ihram?" ʿAli replied, "I have assumed Ihram with the same intention as that of the Prophet." The Prophet ﷺ said, "If I had not the Hadi with me I would have finished the Ihram." Muhammad bin Bakr narrated extra from Ibn Juraij, "The Prophet ﷺ said to ʿAli, "With what intention have you assumed the Ihram, O ʿAli?" He replied, "With the same (intention) as that of the Prophet." The Prophet ﷺ said, "Have a Hadi and keep your Ihram as it is."
قَدِمَ عَلِيٌّ ؓ عَلَى النَّبِيِّ ﷺ مِنَ الْيَمَنِ فَقَالَ بِمَا أَهْلَلْتَ قَالَ بِمَا أَهَلَّ بِهِ النَّبِيُّ ﷺ فَقَالَ لَوْلاَ أَنَّ مَعِي الْهَدْىَ لأَحْلَلْتُ وَزَادَ مُحَمَّدُ بْنُ بَكْرٍ عَنِ ابْنِ جُرَيْجٍ قَالَ لَهُ النَّبِيُّ ﷺ بِمَا أَهْلَلْتَ يَا عَلِيُّ قَالَ بِمَا أَهَلَّ بِهِ النَّبِيُّ ﷺ قَالَ فَأَهْدِ وَامْكُثْ حَرَامًا كَمَا أَنْتَ