Yosef Karo, Translation:Shulchan Aruch — Even ha-Ezer 21To distance oneself from arayos…
“ If one gazes even at the little finger of a woman with the intent to have pleasure from it, it is as though he gazed at her shameful place. It is forbidden to listen to the voice of an erva or to look at her hair. If one intentionally does one of these things, we give him lashes of rebellion. ”
