It is people God is said to "foreknow", not the actions of those people.