Did the rebellion of the angels occur before the creation of the earth?
From the biblical data available, it seems that it occurred after the creation of the earth. Christ created everything (John 1:1-3), including angels (Col. 1:16). While it is possible that they had been created before Genesis 1:1, they had definitely been created by Day 4 when the stars were created, because God says that they had “shouted for joy” when “the morning stars sang together” (Job 38:7). A study of Peter’s summary of the rebellious of the Old Testament indicates that his list in 2 Peter 2 is chronological (2 Pet. 2:1-9). With that in mind, it’s noteworthy that the fall of angels is listed before the events of the global flood (vs. 4-5). If Satan had been included among their number (a possibility but not a certainty based on the biblical information available to us), then the rebellion of the angels had to have occurred before the events of Genesis 3.
The principle of Deuteronomy 29:29 must again be kept in mind. “The secret things belong to God…” In the end, we do not have enough data from the divine revelation of Scripture to give a more concrete answer.