Scripture doesn’t say that God knew what Judas would do before he determined in his heart to betray Jesus. If it does, please give the Scripture.
John 6:64 "But there are some of you who do not believe." For
Jesus knew from the beginning who they were who did not believe, and
who it was that would betray Him.
Judas had determined in his heart to betray Jesus. At that point, God knew Judas would betray Jesus.
Scripture contradicts you. Psalm 55:12-14 "For it is not an enemy who reproaches me; Then I could bear it. Nor is it one who hates me who has exalted himself against me; Then I could hide from him. But it was you, a man my equal, my companion and my acquaintance. We took sweet counsel together, and walked to the house of God in the throng."
Matthew 17:22, 23 "Now while they were staying in Galilee, Jesus said to them, "The Son of Man is about to be betrayed into the hands of men, and they will kill Him, and the third day He will be raised up." And they were exceedingly sorrowful."
Psalm 41:9"Even my own familiar friend in whom I trusted, who ate my bread, has lifted up his heel against me."
Matthew 26:20 When evening had come, He sat down with the twelve. 21 Now as they were eating, He said,
“Assuredly, I say to you, one of you will betray Me.”
22 And they were exceedingly sorrowful, and each of them began to say to Him, “Lord, is it I?”
23 He answered and said,
“He who dipped his hand with Me in the dish will betray Me. 24 The Son of Man indeed goes just as it is written of Him, but woe to that man by whom the Son of Man is betrayed! It would have been good for that man if he had not been born.”
God could see into Peter’s heart and knew he was ready to deny Jesus given certain circumstances. All God had to do was put three people in Peter’s path that night who would confront him and then make a rooster crow.
Come on, 3 times? Pretty clear Christ already knew ahead of time and how many times it would happen. Im guessing by your response though that you do not believe free will, since you adding God made those things happen instead.
Either we have free will and He can see what we choose and work those things to good, or He makes us act instead which means no free will.
Its one or the other.