If you are certain that
something has been emitted from the front and or passage (urethra or anus) after performing Wudu', it is invalidated and you will have to repeat your Wudu'. If this takes place during Salah, you must leave it and repeat Wudu'. However, if you are not certain, the basic rule is that you remain ritually pure because certitude is not cancelled by doubt.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.