Bereshit / Genesis 1:3 · Pshat
וַיֹּאמֶר אֱלֹהִים יְהִי אוֹר וַיְהִי־אוֹר׃
And the Almighty said, "Let there be light." And there was light.
Pshat פְּשָׁט
Light before the sun
What do people worship today? Whatever seems strongest: money, success, fame. In ancient times it was the sun.
Light was created before the sun on purpose, Shadal explains: so it would be clear that light and day depend not on the sun but on God's word. And "said" means that God does not work with hands: everything comes to be by His word.
How Shadal and Radak explain it
Shadal And the Almighty said
Scripture pictures God as a king who gives an order, and everything comes into being by His word. It is telling us that God does not act like a person who works with his own hands. To put it as an image, He is like someone who tells others to act, and they do it, although here there was no one to command (Ibn Ezra holds this view too).
Let there be light.
I think light was created first for this reason. Most peoples worshipped the sun for its enormous power: through its light and heat it acts on everything below. So Scripture tells us at the very start that even before the luminaries there was light, there were day and night, because everything came about by the word of the Eternal.
Radak Let there be light
The luminaries appeared in the firmament only on the fourth day. Even so, they were created on the first day together with the heavenly spheres: everything was created in a single moment. But each creation began to act in the world only on its own day.
So too the light did not begin to send out its rays to make the plants of the earth grow, and grass that yields seed, until the Eternal said that there should be luminaries in the firmament of the heavens, to give light on the earth and to do their work in the earthly world.
Day.
The word "day" (יוֹם) means the time when the sun is over the earth, and only that. So: "all that day and all the night" (Shemot / Exodus 10:13). Sometimes it includes both day and night, as it says: "And there was evening, and there was morning: one day." And sometimes "day" means simply a time, as it says: "on the day that I struck every firstborn" (Bamidbar / Numbers 8:17).
Takeaway
The Rambam writes how the worship of the luminaries began. In the days of Enosh people decided: since God set the stars to run the world and gave them honour, it is fitting to honour them too. That is how idolatry began (Rambam, Mishneh Torah, Laws of Idolatry 1:1).