@Musa_Maliki_
According to the Hanafi School, if a woman was to pray next to a man, the prayer of the man would become invalid, and not the prayer of the woman. However, there are certain conditions in order for the man’s prayer (salat) to become invalid: