Answer:
(Fatwa: 254/229=D/1430)
When you were sure that you were without wudhu then you should cancel the salah. If it was difficult to go out from first row, then you should have immitated the imam in ruku and sajdah without reciting the tasbeeh. However, you should repent to Allah that you continued the salah due to ignorance. You were right to make fresh wudhu and perform salah.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
