Abdullah bin Abbas reported,

There was a woman who used to pray behind the Messenger of Allah ﷺ, and she was strikingly beautiful, among the most beautiful of people. Some of the men would push forward to the first row so as not to see her, while others would hold back until they were in the last row, and then, when one of them bowed, he would look at her from beneath his armpit. So Allah عز وجل revealed, "And We certainly know those among you who go forward, and We certainly know those who lag behind" [Hijr 15:24].

Nasai 871

Daif

أخبرنا قتيبة قال حدثنا نوح يعني ابن قيس عن ابن مالك وهو عمرو عن أبي الجوزاء

عن ابن عباس قال

كانت امرأة تصلي خلف رسول الله ﷺ حسناء من أحسن الناس قال فكان بعض القوم يتقدم في الصف الأول لئلا يراها ويستأخر بعضهم حتى يكون في الصف المؤخر فإذا ركع نظر من تحت إبطه فأنزل الله عز وجل {ولقد علمنا المستقدمين منكم ولقد علمنا المستأخرين}

النسائي 871ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Leadership
Chapter
Praying alone behind the row
Numbering
Darussalam 871
Nasai 871