This ruling does not apply in the same way to one who performed ablution, prayed, and then invalidated his ablution during prayer, as the shariah prevents continuing the prayer in this case. There is no disagreement among our companions that if a person invalidates their prayer through an action that nullifies it, they must restart the prayer. This is further substantiated by evidence.
Commentary #29