Sayyiduna Abu Umamah (may Allah be pleased with him) reports this saying of the Prophet (peace and blessings be upon him): "The best row of the men is the first one and the least good is the last one, and the best row of the women is the last one and the least good is the first one."
Al-Tabarani recorded it in al-Mu'jam al-Kabir. Its chain contains a narrator, Ufayr bin Ma'dan, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2523