Does man have free will?
It is written (Sirach 15:14): “God made man from the beginning, and left him in the hand of his own counsel”; and the gloss adds: “That is of his free-will.”
I answer that, Man has free-will: otherwise counsels, exhortations, commands, prohibitions, rewards, and punishments would be in vain. In order to make this evident, we must observe that some things act without judgment; as a stone moves downwards; and in like manner all things which lack knowledge. And some act from judgment, but not a free judgment; as brute animals. For the sheep, seeing the wolf, judges it a thing to be shunned, from a natural and not a free judgment, because it judges, not from reason, but from natural instinct. And the same thing is to be said of any judgment of brute animals. But man acts from judgment, because by his apprehensive power he judges that something should be avoided or sought. But because this judgment, in the case of some particular act, is not from a natural instinct, but from some act of comparison in the reason, therefore he acts from free judgment and retains the power of being inclined to various things. For reason in contingent matters may follow opposite courses, as we see in dialectic syllogisms and rhetorical arguments. Now particular operations are contingent, and therefore in such matters the judgment of reason may follow opposite courses, and is not determinate to one. And forasmuch as man is rational is it necessary that man have a free-will.
ST. I, Q. 83, A. 1.
Does God know future contingent things?
God knows all things; not only things actual but also things possible to Him and creature; and since some of these are future contingent to us, it follows that God knows future contingent things.
In evidence of this, we must consider that a contingent thing can be considered in two ways; first, in itself, in so far as it is now in act: and in this sense it is not considered as future, but as present; neither is it considered as contingent (as having reference) to one of two terms, but as determined to one; and on account of this it can be infallibly the object of certain knowledge, for instance to the sense of sight, as when I see that Socrates is sitting down. In another way a contingent thing can be considered as it is in its cause; and in this way it is considered as future, and as a contingent thing not yet determined to one; forasmuch as a contingent cause has relation to opposite things: and in this sense a contingent thing is not subject to any certain knowledge. Hence, whoever knows a contingent effect in its cause only, has merely a conjectural knowledge of it. Now God knows all contingent things not only as they are in their causes, but also as each one of them is actually in itself. And although contingent things become actual successively, nevertheless God knows contingent things not successively, as they are in their own being, as we do but simultaneously. The reason is because His knowledge is measured by eternity, as is also His being; and eternity being simultaneously whole comprises all time, as said above (I:10:2). Hence all things that are in time are present to God from eternity, not only because He has the types of things present within Him, as some say; but because His glance is carried from eternity over all things as they are in their presentiality. Hence it is manifest that contingent things are infallibly known by God, inasmuch as they are subject to the divine sight in their presentiality; yet they are future contingent things in relation to their own causes.
ST. I, Q. 14, A. 13.