(وَعَنْهُ أَيْضًا عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((أَحْسِنُوا إِقَامَةَ الصُّفُوفِ فِي الصَّلَاةِ، خَيْرُ صُفُوفِ الرِّجَالِ فِي الصَّلَاةِ أَوَّلُهَا، وَشَرُّهَا آخِرُهَا، وَخَيْرُ صُفُوفِ النِّسَاءِ فِي الصَّلَاةِ آخِرُهَا، وَشَرُّهَا أَوَّلُهَا))
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Noble Prophet said: Keep the rows straight in prayer; the best row for men in prayer is the first one and the worst is the last, and for women, the best row is the last and the worst is the first.