S. Th. I-II, q. 57; De Virt. q. 1, a. 6 and 7.
588. Principle. Five distinct species of intellectual virtues are enumerated:
A. Three are in the speculative intellect which stops at the contemplation of truth, by which namely it is perfected for knowing the true:
1°) Habit of principles, by which it is disposed for knowing first principles, whether speculative: then it is called simply intellect (νοῦς), or practical: then it is called synderesis.
2°) Science (ἐπιστήμη), which is perfected for knowing conclusions evident in some genus of knowable things through their proper causes.
3°) Wisdom (σοφία), which is perfected for knowing conclusions of any genus whatsoever through the highest causes, by which it also judges of the principles.
B. In the practical intellect, which orders truth to work, there are two, by which it is perfected for directing and regulating human operations:
4°) Art (τέχνη), which directs transient operations, by which one makes something in exterior matter, as to build, to cut, etc.
5°) Prudence (φρόνησις), which directs operations remaining in the agent itself, as to will, to love, to be angry, etc.
Art is defined as right reason of the makeable, which directs the works themselves or effects to be made according to certain rules; prudence as right reason of the doable, which directs human acts.
589. In what sense they are virtues. — The four former are virtues in a qualified sense, because they do not incline to acting honestly: for they give only aptitude for operating well, not good use, because this pertains to the appetite, whence the work of art can be morally most evil; — on the contrary, prudence by which human reason is well disposed for ordering human acts in the appetite, as means to the honest end, is a virtue simply so called.
This virtue is most necessary for man. For for living honestly, it does not suffice that man wills some good end (what he does), but also that he order suitable means to the end is most required (how he does it). For the due end man is disposed in the appetite through moral virtue; but for the means being conveniently ordered to the end, reason also must be well disposed, moved by the will, which is done by prudence: for precisely about the means to be chosen to deliberate, and to judge, and to command are acts of reason; for doing these rightly prudence disposes us well.
590. Corollary. — Hence, although prudence according to essence and by reason of subject is an intellectual virtue, by reason of matter which is the honest human act it agrees with the moral virtues. Whence it is numbered among them, when they are opposed to the theological virtues.