Is Satan cast out of the world and defeated, or is he prowling around like a lion? How should we think and feel about the activity of satanic evil? Because Christ is victorious, you can put your faith in him in spite of the darkness around you. There are several insights to see in this text about this issue.
First, observe how Jesus expresses his troubled heart because of the coming crucifixion and sacrifice (v. 27). Nevertheless, he acknowledges that his substitutionary death was the reason he came to earth, and would be the vehicle of his glorification. Jesus expressed his sorrow to the Father, rested in truth, and grieved with hope. This is how we ought to handle our own troubles.
Second, notice the collision of two kingdoms at the cross (v. 31): the kingdom of sin and darkness, and the kingdom of God. Which would be the future of man? The kingdom of darkness or that of God? Jesus answers this dilemma: through his death, mankind would be reconciled to God.
Which takes us to the third point: the judgment of the Enemy (v. 31). Both forgiveness and the disarmament of the power of Satan (sin and death) was accomplished through Jesus’ death and and confirmed by the resurrection.
How to apply this to our lives? Expect evil and hate it. Jesus is victorious, but evil is still present until the end of time. Love people and hate the effects of it in our friends and our world. Also, pray for escape from evil, and overcome evil with good. Lastly, never doubt God is totally in control.