Answered by Shaykh Faraz Rabbani
What should one do if one passes wind while performing salat in congregation or alone?

Walaikum assalam wa rahmatullah,
One’s prayer is invalidated, so one must perform wudu again, and should then start over. [Shurunbulali, Nur al-Idah]
Wassalam,
Faraz Rabbani