The sixth condition: As an obligatory precaution, women should stand behind men while praying. At least, her place of Sajdah should be in line with his thighs, when in Sajdah.
896. If a woman stands in line with man, or in front of him in Namaz, and both of them begin together, they should repeat their prayers. And the same applies if one of them starts earlier than the other.
897. If a man and a woman are standing side by side in Namaz, or woman is in front, but there is a wall, curtain, or something else separating them, so that they cannot see each other, the prayers of both of them are in order. Similarly, the prayers of both will be valid if the distance between them is ten arms.