The verse from Job 38 indicates that Satan was created before the earth was created (Genesis 1:1), since he was one of the "sons of God" who "shouted for joy." His rebellion began sometime between the creation of the earth and the garden of Eden.
Upvote
0