The Bible says, in the beginning the Earth was wild and empty. In Hebrew it is called Tohuwabohu, utter chaos. So God turned on the light just by saying “there shall be light”. And there was light.
Our salvation is just an appendix in Christ’s redemption of all creation. One of the most quoted Bible verses of all time is John 3:16: “For God so loved the world that he gave his one and only Son, ...