“Abimelech said, “What is this you have done to us? One of the people might easily have lain with your wife, and you would have brought guilt upon us.” So Abimelech charged all the people, saying, “He who touches this man or his wife shall surely be put to death.”” Gen. 26:10-11
Rashi points out that the original Hebrew indicates the text implies “the one among the people” as opposed to just “one of the people”, whereby it infers it was Abimelech himself that had considered laying with Rebekah.
Abimelech seems to take seriously the threat of divine punishment for the act of adultery, which is likely because God spoke to him in a dream when he took Sarah from Abraham, and did threaten him and all his people (Gen. 20:3)
The end result of discovering the true relationship between Isaac and Rebekah after this confrontation is protection and favor for Isaac and his wife. In Genesis 12 with Abraham and Pharoah, Abraham and Sarah were safely escorted out of the land. In Genesis 20 with Abimelech, Abraham was given land, silver and much property.
It is an amazing picture of God’s grace, as both Abraham and Isaac lied, and after the truth became known, God chose to bless them in various ways despite their actions.