While performing Hajj, men and women are allowed to pray together in the same line. The gathering in Hajj resembles the gathering on the Day of Judgment even if there is a great difference. We know that the rites of Hajj seek to link pilgrims to the Hereafter and the Resurrection. Therefore, men and women are permitted to do so, based on Almighty Allah’s Wisdom and Will to gather together in the Sacred place to perform the rituals of Hajj.
Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, states:
There are two issues we must always distinguish well: First, Islam does not prescribe complete segregation of the sexes as is practiced in many Muslim communities today. Complete segregation was a later innovation, because during the time of the Prophet (peace and blessings be upon him) men and women were active participants in all aspects of life, without being segregated.
Second, while interacting in society they were observing the Islamic ethics of interaction.
therefore, what is happening during Hajj is permissible; but having said that, if there is some unavoidable touching of one another in a crowd, we cannot say that this is a general rule that can be applied in all circumstances.
However, the most important point concerning men and women praying without a partition or physical barrier in Al-Haram of Makkah should be the ideal for us to follow. For in that way, we allow full participation of women in all walks of life. That was indeed the way they interacted during the time of the Prophet (peace and blessings be upon him). By restoring this state of affairs, we would be changing the image of Islam, for a picture is worth more than a thousand words.