Sahih Muslim Book 4, Hadith 147
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.
The Messenger of Allah (ﷺ) said: If you were to know, or if they were to know, what (excellence) lies in the first rows, there would have been drawing of lots (for filling them) ; and Ibn Harb said: For (occupying) the first row there would have been drawing of lots.
This hadith is narrated by Suhail with the same chain of transmitters.