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