Mishkat al-Masabih
Abu Huraira reported God’s Messenger as saying, "The best of the men’s rows is the first and the worst is the last, but the best of the women’s rows is the last and the worst is the first.” Muslim transmitted it.
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «خَيْرُ صُفُوفِ الرِّجَالِ أَوَّلُهَا وَشَرُّهَا آخِرُهَا وَخَيْرُ صُفُوفِ النِّسَاءِ آخِرُهَا وشرها أَولهَا» . رَوَاهُ مُسلم
Reference