But God came to Abimelech in a dream by night, and said to him, “Behold, you are a dead man, because of the woman whom you have taken; for she is a man's wife.”
Then God said to him in the dream, “Yes, I know that you have done this in the integrity of your heart, and it was I who kept you from sinning against me; therefore I did not let you touch her.
Besides, while he was sitting on the judgment seat, his wife sent word to him, “Have nothing to do with that righteous man, for I have suffered much over him today in a dream.”
And to keep me from being too elated by the abundance of revelations, a thorn was given me in the flesh, a messenger of Satan, to harass me, to keep me from being too elated.