Exodus 9:13-16 KJV
And the Lord said unto Moses, Rise up early in the morning, and stand before Pharaoh, and say unto him, Thus saith the Lord God of the Hebrews, Let my people go, that they may serve me. [14] For I will at this time send all my plagues upon thine heart, and upon thy servants, and upon thy people; that thou mayest know that there is none like me in all the earth. [15] For now I will stretch out my hand, that I may smite thee and thy people with pestilence; and thou shalt be cut off from the earth. [16]
And in very deed for this cause have I raised thee up, for to shew in thee my power; and that my name may be declared throughout all the earth.
Romans 9:17-18 KJV
For the scripture saith unto Pharaoh, Even for this same purpose have I raised thee up, that I might shew my power in thee, and that my name might be declared throughout all the earth. [18] Therefore hath he mercy on whom he will have mercy, and whom he will he hardeneth.
Jeremiah 51:11 KJV
Make bright the arrows; gather the shields:
the Lord hath raised up the spirit of the kings of the Medes: for his device is against Babylon, to destroy it; because it is the vengeance of the Lord, the vengeance of his temple.
Daniel 4:17 KJV
This matter is by the decree of the watchers, and the demand by the word of the holy ones: to the intent that the living may know that
the most High ruleth in the kingdom of men, and giveth it to whomsoever he will, and setteth up over it the basest of men.
Revelation 17:16-17 KJV
And the ten horns which thou sawest upon the beast, these shall hate the whore, and shall make her desolate and naked, and shall eat her flesh, and burn her with fire. [17]
For God hath put in their hearts to fulfil his will, and to agree, and give their kingdom unto the beast, until the words of God shall be fulfilled.
The plans of the wicked are just a subplot in the larger Divine Plan. They think they are following their own agenda(s) but in reality they are following the script given to them. In fact they signed up for it. God is in control of all things, so the schemers and rebels got their little plans but it all gets worked out by God to His glory.
Proverbs 21:30 KJV
There is no wisdom nor understanding nor counsel against the Lord.
Proverbs 16:4 KJV
The Lord hath made all things for himself: yea, even the wicked for the day of evil.