God Almighty had to lead through many forked roads our forefather Abraham, in many of which he took the wrong fork. In Genesis 12:11-20 (before the Pharaoh in Egypt) and also in Genesis 20:1-2 (before King Abimelech), events in Abraham's formative years (lessons placed there for our contemplation and admonition), Abraham compromised with God's law—at least that part dealing with bearing false witness. God Almighty allowed Abraham to take the wrong fork in both situations, and then in His mercy bailed him out of a bad situation, but not before Abram stewed in his predicament for awhile, learning some hard lessons about taking the expedient, faithless way out.
Now I'm going to throw one in here. This was the second time that it happened! Look back at Genesis 12:10-20 and the same thing happened between Abraham and Pharaoh fifteen or twenty years before. How long was God's forbearance now? Fifteen or twenty years.
But He had given Abraham time to repent of this sin, but he never did it. Eventually I'm sure that he did, but here we have a fifteen or twenty-year period of time where God tested him on the same problem in order to help him grow in character. I thought that was kind of interesting.