i wanted to ask that during our prayers if we stop the passing gas and continue our namaz so is my namaz qubool or will i Have to recite it again?

koi masaala nahi aapki namaz sahi hai