It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Prophet, peace and blessings be upon him, said: "A servant remains in the state of prayer as long as the prayer restrains him and he does not break his ablution." « احداث » This means that he passes wind, whether silently or audibly. I am not ashamed to mention something which the Messenger of Allah, peace and blessings be upon him, was not ashamed to mention.
Related hadith on this topic