Some skeptics claim that chapters 1 and 2 are contradictory. However, a close reading shows there is no contradiction. Genesis 1 gives the day-by-day account of the entire creation week, whereas Gen. 2 gives the details of man’s creation on the sixth day. Since the creation work was finished in chapter 1 (which closes with the end of day six), Genesis 2 begins by recapping: “Thus the heavens and the earth, and all the host of them, were finished. And on the seventh day God ended His work which He had done, and He rested on the seventh day from all His work which He had done” (vv. 1,2). To make it even clearer, God then tells us, “This is the history of the heavens and the earth when they were created” (v. 4).
Genesis 2:4 This is the history of the heavens and the earth when they were created, in the day that the Lord God made the earth and the heavens,