Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him) that the Messenger of Allah (peace and blessings be upon him) said: "The best row of the men is the first and the last row is the worst; and the worst row of the women is the first and the best row is the last."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5167