Thomas Aquinas said this quote

A man has free choice to the extent that he is rational.