The people promise to do and listen to everything that Hashem says. Moshe writes the Book of the Covenant, and reads it to the people. Moshe ascends the mountain for 40 days in order to receive the two Tablets of the Covenant. We've all had the feeling. Or you're about to walk into a room and you visualize it exactly as it turns out to be.
Nobody really understands d,ja vu.
One theory is that the brain experiences a kind of short-circuit. The result is that even though you think you've seen it all before, in reality you are seeing something for the first time. And these are the statutes which you will place before them. There's a kind of d,ja vu at work here. Civilized cultures believe that it is our own native logic that teaches us the societal prohibitions against killing and theft.