Fine, what is the context of this passage?...
Genesis 1:5 KJV
And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.
Firstly, the literary context of the verse is within the larger context of Genesis 1 so we need to look at the passage as a whole. Taking a verse out of context doesn't help when trying to understand it. When we look at the literary style of Genesis 1 we see that it has an intricate structure and contains a lot of rhythm and repetition, parrallelism and chiasmus and uses a lot of number symbolism. All of which point to something more complex than a
simple narrative.
Looking at the historical/cultural setting, if we assume the traditional view of the author as Moses, we see this was given to the Israelites after spending 400 years in Egypt. We can see a lot of similarities between Genesis 1 and other creation accounts from the ancient near east, which is hardly surprising given they are living in a similar culture. But what is more striking are the differences. The creation is not described as coming about after a battle between other gods, but Yahweh spoke and brought order to creation and a place where life can flourish. The gods of all other cultures as shown clearly to be part of Yahweh's creation - sun, moon, birds, animals, etc. And far from being created to do the bidding of gods, humanity is the pinnacle of Yahweh's creation, made in His image to rule over the rest of creation as His representatives.
These differences point to a polemical purpose - having a go at the beliefs of other cultures, and presenting Israel's God as the One True God.
When we look at the comology of the passage, we see it is in line with ancient cosmology (their views of the structure of the 'universe'), not modern day cosmology. The verse you quoted is a good example of that. It was a common view in the ancient near east that the light of day did not come from the sun (as today we know it does) but from the gods (or in Israel's case Yahweh) who is the ultimate source of light. This is of course perfectly reasonable since the light of dawn appears some time before the sun appears on the horizon, and remains some time after the sun disappears from the horizon. Understanding it this way makes much more sense of the passage.
Is there even a context 'before the beginning?
The Bible is a book and has a context - it did not appear in a vacuum. The Bible may be written
for us all, reagrdless of our time and culture, but it was not written to us - we were not the original audience. We should therefore expect it to be written, not in alignment with our modern day culture or cosmology, but that of the ancient Israeiltes.