Follow up to the question "By what standards does Judaism hold infants accountable for sin?". The issue raised was how could God hold infant Amalekites accountable for sins they did not commit and order for them to be slaughtered with others of the Amalekite nation.
The given answer stated that due to God's omniscience, God can also foresee a person's future actions. Therefore because time is not a parameter, God can punish a person for something they had not yet committed. We humans, unlike God, do not have the capacity to foresee the future, and therefore this is something only God is capable of doing. And so an example of this would be the famous "would you kill baby Hitler?" dilemma.
Assuming this is the case, this raises an issue. If God demanded that the infants be killed for their future sins, and then those infants are killed before they commit them, then they would never commit those sins, meaning they are punished for something they never committed, rendering their punishment futile and unjust.
The main question is, are there other instances of God punishing someone for something they have yet to have committed? and how do we explain away this paradox?