The Book of Prayers (Kitab Al-Salat)
Muslim :: Book 4 : Hadith 881
Abu Huraira said: The best rows for men are the first rows, and the worst ones the last ones, and the best rows for women are the last ones and the worst ones for them are the first ones.