in which case we say: Your ihram is valid, but before performing tawaf you must determine what kind of ihram that person entered, so that your tawaf will be performed after identifying the rite you intended.
Evidence for this latter issue—namely, intending to enter ihram as another person entered ihram—is the report that the Prophet ﷺ sent Ali ibn Abi Talib and Abu Musa to Yemen. They arrived in Mecca after the Messenger ﷺ had already arrived for the pilgrimage. Each of them said, “I entered ihram as Your Messenger entered ihram,” and they pronounced the talbiyah as the Messenger ﷺ had done. As for Ali, the Messenger ﷺ asked him, “For what did you enter ihram?” He replied, “For that which the Messenger of Allah entered ihram.” He said, “I have sacrificial animals with me, so do not exit ihram.” (1) Thus, he made him share in his sacrificial animals, because he had sacrificial animals with him; and whoever brings sacrificial animals cannot exit ihram.
As for Abu Musa, he told him, “Make it an ‘umrah,” even though his ihram, when he entered ihram as the Messenger of Allah ﷺ had done, would have constituted qiran. However, Abu Musa had no sacrificial animals with him. (2)
From this we learn that a person may enter ihram as another person entered ihram, but he must specify it before performing tawaf, so that his tawaf is performed as part of a known rite. This is why the author says here, “or his rite.”
It states in al-Rawd: “That he entered ihram without specification.” Thus, if he entered ihram without specification and proceeded to perform tawaf, regarding it as an unrestricted tawaf just as his ihram was unrestricted, then it is not