The Messenger of Allah ﷺ said, "The best rows for women are the last ones and the worst are the first, and the best rows for men are the first ones and the worst are the last."
حدثنا أحمد بن عبدة حدثنا عبد العزيز بن محمد عن العلاء عن أبيه عن أبي هريرة و عن سهيل عن أبيه
قال رسول الله ﷺ خير صفوف النساء آخرها وشرها أولها وخير صفوف الرجال أولها وشرها آخرها
Muslim narrated it in the Book of Prayer, chapter on straightening and establishing the rows, etc., hadith no. 440, from the hadith of Abdul-Aziz Darawardi, from Suhayl, from his father, with this wording... and it is found in his portion (25).