Predestination
You will judged and rewarded according to your deeds. His advanced knowledge doesn’t affect your free will. H just know in advance what you do. But your reward or punishment can only be decided once you have done something.