Genesis 20:6
King James Version
“And God said unto him in a dream, Yea, I know that thou didst this in the integrity of thy heart; for I also withheld thee from sinning against me: therefore suffered I thee not to touch her.”
Context
3But God came to Abimelech in a dream by night, and said to him, Behold, thou a dead man, for the woman which thou hast taken; for she a man’s wife.
4But Abimelech had not come near her: and he said, Lord, wilt thou slay also a righteous nation?
5Said he not unto me, She my sister? and she, even she herself said, He my brother: in the integrity of my heart and innocency of my hands have I done this.
6And God said unto him in a dream, Yea, I know that thou didst this in the integrity of thy heart; for I also withheld thee from sinning against me: therefore suffered I thee not to touch her.
7Now therefore restore the man wife; for he a prophet, and he shall pray for thee, and thou shalt live: and if thou restore not, know thou that thou shalt surely die, thou, and all that thine.
8Therefore Abimelech rose early in the morning, and called all his servants, and told all these things in their ears: and the men were sore afraid.
9Then Abimelech called Abraham, and said unto him, What hast thou done unto us? and what have I offended thee, that thou hast brought on me and on my kingdom a great sin? thou hast done deeds unto me that ought not to be done.