Genesis 20:6

New American Standard Bible (NASB)
Then God said to him in the dream, “Yes, I know that in the integrity of your heart you have done this, and I also [f]kept you from sinning against Me; therefore I did not let you touch her.

Read Genesis 20:6 in other translations