Genesis 20:6-7 (Darby)
6 And God said to him in a dream, I also knew that thou didst this in the integrity of thy heart, and I, too, have withheld thee from sinning against me: therefore have I not suffered thee to touch her.
7 And now, restore the man's wife; for he is a prophet, and will pray for thee, that thou mayest live. And if thou do not restore her, know that thou shalt certainly die, thou and all that is thine.
About Genesis 20: Genesis 20 takes place in Gerar, a town between Canaan and the sea. Abraham is staying there as a stranger when he repeats an old mistake about his wife Sarah (verses 1-2). This echoes the story in Genesis 12, where fear led him to hide her safety. Abimelech, the local king, takes Sarah into his house because he does not know she is married (verse 3). God intervenes quickly with a dream, stopping the king before any sin happens (verses 4-6). The text notes that Abimelech acted in integrity of heart, meaning he had no bad intent, yet God still held him back to protect His covenant people. Read the study notes
2 verses · Compare in parallel · Read all of Genesis 20