Answered by Sidi Fadi Qutub Zada
If one is not sure whether they had passed gas during namaz, is the namaz still valid if they had passed gas, but carried on praying thinking that they had? Also, if one if fairly sure yet still carries on praying is the namaz valid?
Wa alaykum Assalam wa Rahmatullah wa Barakatuhu,
If doubt occurs to one during prayer, ‘did I pass wind or not?’ Then one does not pay any attention to it but merely continues praying, and one’s prayer is correct.
The great hanafi jurist Ibn Abidin says:
The upshot is that if one is certain that one previously made purification (tahara), and is doubtful that a ritual impurity (hadath) took place after it, or vice versa, then one follows what came first because one is certain about it (and doubtful about what came second).
If one has reasonable surety (ghalabat al-dhann) that one passed gas in the prayer, then one’s prayer is invalid and so is one’s wudu. The fuqaha mention, however, that for it to be of consequence, reasonable surety (ghalabat al-dhann) needs evidence. This evidence is usually one of three matters:
Experience; Clear signs; Expert opinion (such as an upright Muslim doctor in medical issues). [quoted from a previous answer by Sidi Faraz]