It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The best rows of the men are the first and the worst are the last, and the best rows of the women are the last and the worst are the first."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5129
Jabir bin Abdullah (may Allah be pleased with him) says: I heard the Messenger of Allah (peace and blessings be upon him) while he was on the pulpit; he said: "Beware! No woman should lead a man in prayer."
This hadith has weakness in its chain. It is also narrated through another weak route from Ali bin Abi Talib (may Allah be pleased with him) as his own saying, and it is the position of the seven jurists among the Successors and those after them.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5131