Sahih Muslim Book 4, Hadith Number 883.

Chapter : Straightening of rows and the excellence of the first row and then of the subsequent rows and competing and vying with one another for the first row and priority of the men of virtues and their nearness to the Imam.

Sahl b. Sa’d reported: I saw men having tied (the ends) of their lower garments around their necks, like children, due to shortage of cloth and offering their prayers behind the Apostle of Allah (may peace be upon him). One of the proclaimers said: O womenfolk, do not lift your heads till men raise (them).