Allah commands the believers to lower their gaze and guard their chastity (al-Nūr 24:30). The Prophet ﷺ said the sudden, unintended glance is pardoned — but do not follow it with another. (Muslim).