I reached an agreement with my eyes, that I would not so much as think about a virgin
Other versions
King James Version
I made a covenant with mine eyes; why then should I think upon a maid?English Standard Version
"I have made a covenant with my eyes; how then could I gaze at a virgin?New International Version
"I made a covenant with my eyes not to look lustfully at a girl.