It is a known fact that it can't. The order of things created was very deliberate as one thing is dependent on another. This is where the atheist comes unstuck when they say one thing happens and then the next millions of years later. By the time something happens according to their time line, everything would be dead.
The first light did not come from the sun and stars because they weren't created yet..
First Light
3 And God said, Let there be light: and there was light.
4 And God saw the light, that
it was good: and God divided the light from the darkness.
5 And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.
Second Light
14 And God said, Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days, and years:
15 And let them be for lights in the firmament of the heaven to give light upon the earth: and it was so.
16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night:
he made the stars also.
17 And God set them in the firmament of the heaven to give light upon the earth,
18 And to rule over the day and over the night, and to divide the light from the darkness: and God saw that
it was good.
19 And the evening and the morning were the fourth day.
Commentary
How Was There Light If God Didn’t Create the Sun Yet in the Bible?
How Did God Create Light, if He Had Not Yet Created the Sun or Stars? Doesn’t the Sun Give Light?
While this argument may contain some truth, it is very incorrect in it’s logic. Let me explain: Light comes from a particle called a “photon.” Photons are unique, in that they have properties of both a particle and a wave. That is unique because most things are either particles or waves. Photons have both properties.
In the story of Genesis, light is the first thing mentioned as being created in our universe.
And God said, “Let There Be Light,” and there was light. (Genesis 1: 3)
If you keep reading, you will see that “light” is created before the Earth, Sun, Moon, and Stars. So how is that so? If the sun or “stars” produce light, how was there light before God created those things? The answer is simple.
Light is simply “photons”. A photon is a particle of light. A lot of light means there are a lot of photons. The sun is our main source of light (photons) because it has extreme reactions of burning hot gasses constantly releases large quantities of photons. But just because the sun or other stars release photons, doesn’t mean they weren’t released before they were created.
The stars and sun are only a source of photons-and not the only source. Photons existed before the sun, stars, or anything else was here. When the Lord God says “Let there be…” matter and energy jump at His commands. God’s word is powerful. The Bible teaches that by the Word of God, the world was created:
Through faith we understand that the worlds were framed by the word of God, so that things which are seen were not made of things which do appear.
Hebrews 11:3
My Personal Thoughts
I think the first light was His glory....goodness.....how he separated Himself from evil....darkness represented evil.....Jesus is the light....
So as I said this is just my humble thoughts on it.