If she passed beyond the sutra, your prayer is valid

while praying I kept a sutrah in front of me but still some adult women passed by it. I asked the islamic teacher if I have to repeat the prayer and she said no..then another teacher said yes..it’s been around 2 months since this happend..do I have ti repeat it?

Prayer |