Genesis 2:4
4This is the history of the generations of the heavens and of the earth when they were created, in the day that the LORD God made the earth and the heavens.
“This is the history of the generations” retells origin: heavens and earth when they were created, in the day the LORD God made earth and heavens. The covenant name now joins Elohim—Yahweh God as Maker.
This is a personal God, not an anonymous force. The world has a beginning and an Author; remembering that origin directs praise to Him who freely made, rather than to the creature treating itself as self-born.
Generations here means origin, not offspring. Moses inculcates that the world existed only from the time it was created, under the name LORD God.
This repetition guards God’s glory against those who would feign an eternal world. Heaven and earth, by synecdoche the whole, come from the self-existent LORD who made them—history starts with His making.