The Messenger of Allah ﷺ said, "The best of the men's rows is the front row and the worst is the last, and the best of the women's rows is the last row and the worst is the front. Company of women, when the men prostrate, lower your gaze so that you do not see the private parts of the men because of the tightness of their lower garments."
حدثنا أبو سعيد حدثنا زائدة حدثنا عبد الله بن محمد بن عقيل
قال رسول الله ﷺ خير صفوف الرجال المقدم وشرها المؤخر وخير صفوف النساء المؤخر وشرها المقدم يا معشر النساء إذا سجد الرجال فاغضضن أبصاركن لا ترين عورات الرجال من ضيق الأزر