Looking at a non-Mahram woman

Q 2: Is it permissible for men to intentionally look at non-Mahram women, other than an accidental glimpse? If it is not, is it permissible for male students to attend a lecture given by a woman dressed immodestly on the pretext of learning?

A: Men are not permitted to look at women beyond an accidental glimpse, except when necessary, as in the case of a man saving a woman from drowning or from a fire, pulling her from under the debris of a collapsed building, or the like. It is also permissible in the case of medical check-ups or treatment, if there is no woman available to perform the procedure. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.