Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates this statement of the Prophet (peace and blessings of Allah be upon him): "Establish beauty in forming the rows during prayer, and the best row among the people in prayer is the first one, and the least good is the last one. And among the rows of women, the best row is the last one, and the least good is the first one."