Genesis 20:6

6Then 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 a  against me. Therefore I did not let you touch her.
Copyright information for ESV