Genesis 20:3-6 (WEB)
3 But God came to Abimelech in a dream of the night, and said to him, “Behold, you are a dead man, because of the woman whom you have taken; for she is a man’s wife.”
4 Now Abimelech had not come near her. He said, “Lord, will you kill even a righteous nation?
5 Didn’t he tell me, ‘She is my sister’? She, even she herself, said, ‘He is my brother.’ I have done this in the integrity of my heart and the innocence of my hands.”
6 God said to him in the dream, “Yes, I know that in the integrity of your heart you have done this, and I also withheld you from sinning against me. Therefore I didn’t allow you to touch her.
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
4 verses · Compare in parallel · Read all of Genesis 20