Knowing that something will happen is never the cause of it happening. You always have free will to choose your actions.
“Knowing that something will happen is never the cause of it happening.”
It doesn’t matter what the cause is - you will do what’s preordained.
The ties between cause and effect become irrelevant in a world with an omniscient God. They are simply a string of events that he causes to happen at his whim and they may or may not be related.
To the extend that God imposes some fairly constant relationship between certain events, that helps us - non-omniscent humans - to approximately predicting what’s likely to happen. (eg, you jump off a cliff you most likely die)
Every so often humans discern some of these relationships. It’s what we call, the “laws of nature”.