Foreknowledge though does not necessarily mean that God caused it to happen. He knows all things at all times (as He is outside of time). What makes you think that God cannot know our free actions and have based His response to our action based on His foreknowledge?This argument is smashed by noting what happens when. FOREknowledge means that the knowledge exists before the action. Definite foreknowledge means that the future action is now-necessary. It cannot be otherwise. We cannot assume this is a free action, because that is what we wish to conclude. However, because it is now-necessary before it is taken, it cannot be free action.
Example, if I knew that my child was going to have an accident on the playground---could I not intervene to prevent that accident from happening, or could I not permit the accident to happen?
Another example if I knew my child was going to want to gamble their money on winning prize at the fair grounds, could I permit him to go ahead and gamble so he learns a lesson about how one can lose their money, or on the otherhand I could intervene to prevent them from gambling at all.
If God foreknew that some time down through the ages that people would be put to death on a tree---could God decide to use that tree for His Son, and the people that perpetrate such acts?
God foreknows all things, even before the die is cast, or our voice speaks.