The Holy Prophet (Sallallahu alaihi wa sallam) said:
whichever Muslim unintentionally sees the beauty of a non-Mahram woman and immediately turns his gaze down, then Almighty Allah will grant him the guidance to perform such worship, the sweetness of which he will actually feel.
(Musnad Imam Ahmad, Hadith No. 22938)