Revelation 12:7–12 (NKJV)
After the account of the attack of the dragon on the child born to the expectant woman, John here moves to a recount of the war that broke out in heaven.
7 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 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.
Revelation 12:7-9
In this account, John observes warfare breaking out in heaven between Michael and his army of angels and the dragon. The dragon brought his best, along with his fallen angels, but the dragon did not prevail. The angelic army prevailed, and the dragon was cast out of heaven to the earth. This dragon is definitively identified as the angel who opposed the Lord, presuming to be equal with Him. He is called the serpent, the Devil, Satan, and this passage leaves no doubt about his fate. He is cast out of heaven, and no place was found for him to return. This deceiver of the whole world, along with his angelic sympathizers, were thrown out of heaven, and began to torment the earth.
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.”
Revelation 12:10-12
After the completion of Michael’s angelic army’s victory over the dragon, a loud voice spoke in heaven, saying that salvation, strength, and power through the kingdom of God has come to the earth. This was accomplished by the fact that the accuser of the brethren, Satan, accusing them all day long before God, has been cast down from heaven. Either those accused or those who fought against Satan overcame him through their faith in the blood of the Lamb and by their powerful testimonies. They believed in the face of death, willing to die for their faith, yet overcame and did not die. The call comes forth (in celebration of their victory) to rejoice in the heavens. However, the inhabitants of the earth and the sea are warned that Satan is coming down to them, having great wrath for his ouster from heaven, and knowing he has a short time to take as many souls to hell as possible. This is the situation in which we still find ourselves today, tempted, tested, and tried by the acts of Satan on the earth. He accuses us on earth, without the access to heaven. However, we today can also overcome him by the blood of the Lamb and the word of our testimony. Plead the blood, and declare the wonderful works of God and Satan will be defeated. This is the power of the believer. This is the victory of the child of God.
Artwork from https://gods-and-demons.fandom.com/wiki/War_in_Heaven