In Genesis 4, we read about 2 brothers named Cain and Abel. In simple terms, Cain did not do what pleased God, whereas Abel did. Cain killed his brother because his brother was righteous... It sounds crazy, when we say it like that doesn't it?
11 This is the message you have heard from the beginning: We should love one another. 12 We must not be like Cain, who belonged to the evil one and killed his brother. And why did he kill him? Because Cain had been doing what was evil, and his brother had been doing what was righteous. 13 So don’t be surprised, dear brothers and sisters, if the world hates you. (1 John 3:11-13, NLT)
The spirit of Cain is one that despises others because they do what is right, whilst the individual themselves does what is displeasing to God. Cain could have been inspired by his brother Abel, and if he truly desired to please God, all he had to do was ask what he needed to do differently. Instead, Cain chose to eliminate that which exposed his own evil.
The above scripture from 1 John reminds us why we should not be surprised if the world hates us. Darkness does not like to be exposed, but when we act as light that is exactly what happens. We are the light of the world; therefore, we reveal to this world what things please God. The spirit of this world does not desire what is right or true; therefore, anyone who represents these things will automatically become an enemy.