Nuh bin Qays (may Allah have mercy on him) narrated it with his chain (from Sayyiduna Ibn Abbas, may Allah be pleased with them both), except that in it he said: Beautiful women used to pray behind the Prophet (peace and blessings be upon him). Some people would go to the first rows so that they could not see them, and some would stand in the last row; when they bowed, they would look from under their armpits, keeping their arms away from their sides. So Allah Almighty revealed this verse: "We know those who go forward and We know those who stay behind." [Surah al-Hijr: 24]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5170