“You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives.” (Genesis 20:50)
God doesn’t put evil thoughts on people’s heart. Yet, when people entertain evil thoughts in their hearts and mind, God knows just where to use them for the good of those that love Him.
(Proverbs 16:9) “In their hearts humans plan their course, but the LORD establishes their steps.”
(Isaiah 54:16) “See, it is I who created the blacksmith who fans the coals into flame and forges a weapon fit for its work. And it is I who have created the destroyer to wreak havoc”
God is not evil. Yet, God knows where to fit evil into his master plan.
“Fellow Israelites, listen to this: Jesus of Nazareth was a man accredited by God to you by miracles, wonders and signs, which God did among you through him, as you yourselves know. This man was handed over to you by God’s deliberate plan and foreknowledge; and you, with the help of wicked men, put him to death by nailing him to the cross. But God raised him from the dead, freeing him from the agony of death, because it was impossible for death to keep its hold on him. ” (Acts 2:22-24)
God created evil for his good purpose.
“The LORD works out everything to its proper end– even the wicked for a day of disaster.” (Proverbs 16:4)
“I form the light, and create darkness: I make peace, and create evil: I the Lord do all these things.” (Isaiah 45:7)