Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states: “If this is a persistent problem with you – as it seems to me from your question – then you fall under the category of ashab al-a`dhar (people with valid excuses). In such a case, strict rules of purification do not apply to you. In other words, you are allowed to make use of the rukhsah or dispensation. Accordingly, you are supposed to perform wudu’ as close to the time of Salah as possible. Once you have done that, you need not worry about what happens later. Your Salah is considered valid even if you were to break wind during the course of the Salah any number of times.
However, if there is an intermission in Tarawih (as is the case in some mosques when they take a break after four rak`ahs), then you should try to renew your wudu’ if you can do so without hardship. If that is hard on you, you can simply continue the Salah.
Remember Allah does not impose on us conditions which are impossible for us to fulfill. We are ordered only to worship Him according to the best of our ability. So continue in your prayer, without being disturbed or confused about your state of purification once you have made sure to perform wudu’ close to the Salah time.”
Editor’s note:
You mention that you have this problem in Tarawih but make no mention of it in your other prayers. It may be a result of certain foods that you eat in iftar, such as milk products, onions, cabbage, etc. that cause gas. Try changing what you eat for iftar, and you may find that you no longer have the problem.
If that does not solve the problem of flatulence, you should seek medical advice to know whether you are suffering from any physical illness that causes this problem. If there is a physical illness that cannot be cured, then act according to the above fatwa.