The Basics of Judaism: Sin and Repentance: Predestination:
Do Jews believe in predestination?
G-d knows what will happen; nevertheless, people have free will and can control their intentions and actions (Mishnah Avos 3:15). If people didn't have free will, it would be unfair to reward them for being good and punish them for sinning.
Ask a follow-up question