Hadith 115

Riyad as-Salihin

Book 17: The Book of the Prohibited actions

Chapter 290

Prohibition of gazing at women and Beardless Handsome Boys except in Exigency

باب تحريم النظر إلى المرأة الأجنبية والأمرد الحسن لغير حاجة شرعية

Riyad as-Salihin 1625
وعن جرير رضي الله عنه قال‏:‏ سألت رسول الله صلى الله عليه وسلم عن نظر الفجأة فقال‏:‏ ‏ ‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
"‏اصرف بصرك‏"
Jarir bin 'Abdullah (May Allah be pleased with him) said:

I asked the Messenger of Allah (ﷺ) about (the Islamic ruling on) accidental glance (i.e., at a woman one is not Islamically allowed to look at) and he ordered me to turn my eyes away.[Muslim].