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.
Some wonder how light (Day 1) was created before the Sun (Day 4) but of course all light does not come from the Sun as ‘light’ is an entity in itself as it is a form of energy more fundamental than light givers. Light exists separate from the Sun and Stars (lamps, torches, fire) and is often used as a description of God’s glory, God has no need of the Sun to shine light upon the Earth as he himself is light which I believe is a mirror to Revelation 21:23 “And the city had no need of the sun, neither of the moon, to shine in it: for the glory of God did lighten it, and the Lamb is the light thereof.”