God is omniscient; Along with the obedient angels, He created Satan and his minions, knowing they would rebel against Him.
I think you are the one who is mistaken in their "thinking" that God didn't know what would happen.
To quote St. Hillary "At this point , what difference does it make"?
>>> I think you are the one who is mistaken in their “thinking” that God didn’t know what would happen.
Having foreknowledge that Lucifer would rebel, and creating him anyway is NOT creating him to do evil.
God also had the foreknowledge that Adam and Eve would sin, and He still created them. By creating them anyway, He also went forward with His plans to create you.
The question then is why? and more specifically, where does sin actually come from?
Sin certainly does not come from God, because He is perfectly Holy and incapable of evil.
Sin itself is a natural byproduct of imperfection... and by imperfection, I mean “Not God”. While all things are possible with God, God is by definition incapable of self replication... because He always was with no beginning.
Obviously, God’s plan from the beginning was to go forward with creation KNOWING that imperfection would result in sin which would have to be dealt with and separated to end up with a final universe of beings where sin itself was defeated forever.
The only way that imperfect beings can be made perfect is to somehow be “grafted in” to the creator Himself. I’m not suggesting that this involves “being God” or even being “like God’, but rather attached to Him in such a way that we become incorruptible. Such a condition obviously limits one’s “free will” to some extent which itself must be a choice we make ourselves. Such a choice can only come from love... sort of like the commitment which a man and woman makes in marriage. When God instituted the practice of marriage, does it not make sense that He was trying to show us something?
Giving creation a choice to sin or submit invariably means that some will choose the former.
Without the choice in that matter, the love that is required to make the choice FOR God is not possible.
Without those who choose sin (fallen angels), there is no example or life experience to learn from for those who will choose God’s free gift of salvation.
In short, it is my position (right or wrong) that God ALLOWS evil for the benefit of those who will Choose Him.