OK, you want an example of God knowing something that he did not will to come to pass. Judas.
Jhn 6:64 But there are some of you that believe not. For Jesus knew from the beginning who they were that believed not, and who should betray him.
Jhn 6:70 Jesus answered them, Have not I chosen you twelve, and one of you is a devil?
71 He spake of Judas Iscariot the son of Simon: for he it was that should betray him, being one of the twelve.
Jesus knew beforehand that Judas would betray him. Jesus even chose Judas because he knew he would betray him and fulfill prophecy. But that does not mean God caused Judas to betray Jesus, the scriptures say God never tempts any man to sin.
Jam 1:13 Let no man say when he is tempted, I am tempted of God: for God cannot be tempted with evil, neither tempteth he any man:
14 But every man is tempted, when he is drawn away of his own lust, and enticed.
15 Then when lust hath conceived, it bringeth forth sin: and sin, when it is finished, bringeth forth death.
The scriptures say God does not tempt "any" man to sin, but all men sin when they are drawn away of their "own" lust. God did not put the thought in Judas's mind to betray Jesus.
But God knew Judas would betray Jesus didn't he? It cannot be denied.
There is no way around this, Judas made his own free will decision to betray Jesus, God did not cause this. But God knew beforehand that Judas would make this decision.
This may not fit with your view, but it is what the scriptures plainly say.
Deut 31:15 And the LORD appeared in the tabernacle in a pillar of a cloud: and the pillar of the cloud stood over the door of the tabernacle.
16 And the LORD said unto Moses, Behold, thou shalt sleep with thy fathers; and this people will rise up, and go a whoring after the gods of the strangers of the land, whither they go to be among them, and will forsake me, and break my covenant which I have made with them.
17 Then my anger shall be kindled against them in that day, and I will forsake them, and I will hide my face from them, and they shall be devoured, and many evils and troubles shall befall them; so that they will say in that day, Are not these evils come upon us, because our God is not among us?
18 And I will surely hide my face in that day for all the evils which they shall have wrought, in that they are turned unto other gods.
19 Now therefore write ye this song for you, and teach it the children of Israel: put it in their mouths, that this song may be a witness for me against the children of Israel.
20 For when I shall have brought them into the land which I sware unto their fathers, that floweth with milk and honey; and they shall have eaten and filled themselves, and waxen fat; then will they turn unto other gods, and serve them, and provoke me, and break my covenant.
21 And it shall come to pass, when many evils and troubles are befallen them, that this song shall testify against them as a witness; for it shall not be forgotten out of the mouths of their seed: for I know their imagination which they go about, even now, before I have brought them into the land which I sware.
22 Moses therefore wrote this song the same day, and taught it the children of Israel.
Here is another example of God's foreknowledge. He told Moses he knew Israel would go after other gods. He said he knows their imagination "even now" and "before" he brought them into the promised land.
Again, God does not tempt any man to sin, so this sin arose out of the hearts of the Jews themselves. Yet God knew what they would do beforehand.
So, if God did not tempt and cause the Jews to sin, and yet he knew before that they would, God can see and know the free will decisions of men before they actually take place.
We may not understand how God can foresee the free will decisions of men, but the scriptures show he can and does.