Some argue that the timeline of Genesis 1 does not make sense because it says that God created light before he created the sun, moon, and stars, which are the producers of light.
And God said, “Let there be light,” and there was light.Genesis 1:3
And God said, “Let there be lights in the expanse of the heavens to separate the day from the night. And let them be for signs and for seasons, and for days and years,Genesis 1:14
There is simply no reason why God could not have created light before he created the sun, moon, and stars. The light that God created on day one was simply light that was independent of the normal generators of light.
In 2 Corinthians 4:6, Paul writes this:
For God, who said, “”’Let light shine out of darkness”’,” has shone in our hearts to give the light of the knowledge of the glory of God in the face of Jesus Christ.2 Corinthians 4:6
Creation was a supernatural event, and it is reasonable to believe that God creating light apart from what normally generates light in the universe was also a supernatural event.
There are some foundational principles that apply to all alleged and apparent contradictions in the Bible. To read more, see Bible Difficulties: Foundational Principles.
To read more answers to alleged and apparent contradictions in the Bible, see “Contradictions” in the Bible Answered.
These books are also excellent resources: