Genesis 26:1-11 NIV
Now there was a famine in the land—besides the previous famine in Abraham’s time—and Isaac went to Abimelek king of the Philistines in Gerar. The LORD appeared to Isaac and said, “Do not go down to Egypt; live in the land where I tell you to live. Stay in this land for a while, and I will be with you and will bless you. For to you and your descendants I will give all these lands and will confirm the oath I swore to your father Abraham. I will make your descendants as numerous as the stars in the sky and will give them all these lands, and through your offspring all nations on earth will be blessed, because Abraham obeyed me and did everything I required of him, keeping my commands, my decrees and my instructions.” So Isaac stayed in Gerar.
When the men of that place asked him about his wife, he said, “She is my sister,” because he was afraid to say, “She is my wife.” He thought, “The men of this place might kill me on account of Rebekah, because she is beautiful.”
When Isaac had been there a long time, Abimelek king of the Philistines looked down from a window and saw Isaac caressing his wife Rebekah. So Abimelek summoned Isaac and said, “She is really your wife! Why did you say, ‘She is my sister’?”
Isaac answered him, “Because I thought I might lose my life on account of her.”
Then Abimelek said, “What is this you have done to us? One of the men might well have slept with your wife, and you would have brought guilt upon us.”
So Abimelek gave orders to all the people: “Anyone who harms this man or his wife shall surely be put to death.”
NIV: New International Version