If you go to the beginning of the first book, Genesis, instead of jumping to the 20th chapter of the second book you will see it all unfold.
And when you get to Gen. 26:5 you'll find "Abraham obeyed My voice; and he kept My charge, My commandments, My decrees, and My laws." In other words, the Torah.

So there was knowledge of it. It wasn't a surprise.

The initiative is still G-d's, of course.
It is why He created the world.

The last liberals the world ever saw were the Egyptians who sat Joseph's brothers down and fed them meat even though they despised meat eaters. Genuine liberals tolerate the opinions of others.

Today's faux liberals do not tolerate any other opinion and if one exists it has to be squashed.