And God made the two great lights—the greater light to rule the day and the lesser light to rule the night—and the stars.
Genesis 1:16 ESV

The only lights referenced here are the sun and moon because they are the only lights that separate day from night and govern the seasons, but the stars were probably created at the same time.

Light pre-existed the sun because there was day and night before the sun was made. Was the light gathered and focused into the sun, moon, and stars just as the waters were gathered and concentrated in the seas?