Sahih Muslim, Book 15, Hadith 234 (Muslim 2999)

Anas (Allah be pleased with him) reported that 'Ali (Allah be pleased with him) came from the Yemen, and the Apostle (ﷺ) said:

With (what intention) have you put on Ihram? He said: I have put on Ibram in accordance with the intention with which Allah's Apostle (ﷺ) has put on Ibram, whereupon he (the Holy Prophet) said: Had there not been the sacrificial animals with me, I would have put off Ihram (after performing 'Umra).