Imam Gazzali (R), the illustrious Scholar and Sufi, in his finally written book – Minhajul Abideen has provided a very effective piece of advice regarding how to refrain from evil glances!
Inshallah if only we can meditate on this point it will become very easy to abstain from evil glances.
Imam Gazzali (R) told to meditate that WITH THESE EYES INSHALLAH I WILL SEE MY LORD, MY BELOVED ALLAH TAALA, WHICH IS THE GREATEST OF ALL GIFTS IN JANNAH; THIS IS THE UNPARALLEL GIFT INDEED. SO, HOW CAN I, WITH THESE EYES TODAY GLANCE AT ANY HARAAM! HOW COULD I TODAY POLLUTE THESE EYES BY SEEING THE FORBIDDEN AND RESTRICTED THINGS!
In this regard our poem:
O Allah! He is none but You
The Giver of Ability – is only Who;
From evil vice do save my eyes
Without Your Help go vain my tries.
The Creator of Beauty!
I crave to see You.
Do accept my piety
Preserve my view!