Then, Shaykh (Al-Mufid), may Allah سبحانه وتعالى support him, stated: If a person in a state of tayammum entered the prayer and invalidated their state of purification without deliberate intent, and subsequently found water, they should perform purification (ablution) and continue their prayer from where they left off, provided they did not turn their back on the qibla or intentionally speak words unrelated to the prayer.
Commentary #28