Read Genesis 20:6 Using Other Translations
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.
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.
In the dream God responded, “Yes, I know you are innocent. That’s why I kept you from sinning against me, and why I did not let you touch her.