AHMAD 11121:
from Abū Saʿīd al-Khudrī —
[Machine] The Messenger of Allah, ﷺ , said: "The best rows of men are the front rows, and the worst rows are the back rows. And the best rows of women are the back rows, and the worst rows are the front rows. And he said: O women, do not raise your heads when you prostrate, so that you do not see the private parts of men because of the tightness of their clothes."
أحمد ١١١٢١:
عن ابو سعيد الخدري —
قَالَ رَسُولُ اللهِ ﷺ خَيْرُ صُفُوفِ الرِّجَالِ الصَّفُّ الْمُقَدَّمُ وَشَرُّهَا الصَّفُّ الْمُؤَخَّرُ وَخَيْرُصُفُوفِ النِّسَاءِ الْمُؤَخَّرُ وَشَرُّهَا الْمُقَدَّمُ وَقَالَ يَا مَعْشَرَ النِّسَاءِ لَا تَرْفَعْنَ رُءُوسَكُنَّ إِذَا سَجَدْتُنَّ لَا تَرَيْنَ عَوْرَاتِ الرِّجَالِ مِنْ ضِيقِ الْأُزُرِ
hadithunlocked.com