We have already said that by "the world" the apostle means wicked people, just as the Lord said to His disciples: "you are not of the world, just as I am not of the world" (John 15:19, 17:16). And the father of this world, that is, of worldly sensuality and disorder, is the devil. Therefore the Lord also says to the Father concerning His disciples: "I do not pray that You should take them out of the world, but that You should keep them from evil" (John 17:15), that is, from the world, of which the apostle also says in another place (1 John 5:19) that it lies in wickedness. To put it another wa...y: if the evil one is opposed to the good Father, and he who serves the lusts of the world is not of the Father but of the world, then it is obvious that he who is not of the Father but of the world is of the devil. So also in the Gospel it is said to the Jews: "your father is the devil" (John 8:44), that is, you have carnal inclinations which the devil sows and cultivates. And these worldly desires are short-lived and inconstant, but what is done according to the will of God is enduring and eternal. But it is not fitting for the prudent to flee from what is permanent and grasp at what is momentary; for to act in such a way is the same as building a house on sand.
Source: Commentary on 1 John