Abdullah bin Abbas reported,

A woman used to pray behind the Messenger of Allah ﷺ who was strikingly beautiful, among the most beautiful of people. Some of the men would push forward to be in the first row so as not to see her, while others would hang back to be in the last row, and when such a man bowed he would steal a glance at her from beneath his armpit. So Allah Most High revealed, "And We have certainly known those who go forward among you, and We have certainly known those who hang back" [Hijr 15:24].

Tirmidhi 3122

Daif

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

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

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

الترمذي 3122ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Hijr
Numbering
Darussalam 3122
Tirmidhi 3122