What does foreknowledge that a person will be pardoned not entail?

Forgiveness of Shirk and Other Sins; Threats and Divine Mercy