Here is the scripture.
Revelation 12
And war broke out in heaven: Michael and his angels fought with the dragon; and the dragon and his angels fought, 8 but they did not prevail, nor was a place found for them[a] in heaven any longer. 9 So the great dragon was cast out, that serpent of old, called the Devil and Satan, who deceives the whole world; he was cast to the earth, and his angels were cast out with him.
10 Then I heard a loud voice saying in heaven, Now salvation, and strength, and the kingdom of our God, and the power of His Christ have come, for the accuser of our brethren, who accused them before our God day and night, has been cast down. 11 And they overcame him by the blood of the Lamb and by the word of their testimony, and they did not love their lives to the death. 12 Therefore rejoice, O heavens, and you who dwell in them! Woe to the inhabitants of the earth and the sea! For the devil has come down to you, having great wrath, because he knows that he has a short time.
The Woman is the body of Christ. The Body of true Christians who believe Jesus.
Jesus also talked of satan being thrown out of heaven:
Luke 10
17 Then the seventy] returned with joy, saying, Lord, even the demons are subject to us in Your name.
18 And He said to them,
I saw Satan fall like lightning from heaven. 19 Behold, I give you the authority to trample on serpents and scorpions, and over all the power of the enemy, and nothing shall by any means hurt you. 20 Nevertheless do not rejoice in this, that the spirits are subject to you, but rather[
f] rejoice because your names are written in heaven.
All Praise The Ancient Of Days