I once heard a story about a rabbi who was given a test by God, in which the Satan was sent in the form of a beautiful woman to entice him. He would not look at the Satan, and when pressed, he had one of his students bring him hot spits and he burned out his eyes.
God sent Refael to heal him, but he refused the boon unless he was promised that he would never again experience such a test. I think his demand was acquiesed.
Where is this the source for this story?