I answer that, As stated above (Article [1]), wisdom denotes a certain rectitude of judgment according to the Eternal Law. Now rectitude of judgment is twofold: first, on account of perfect use of reason, secondly, on account of a certain connaturality with the matter about which one has to judge. Thus, about matters of chastity, a man after inquiring with his reason forms a right judgment, if he has learnt the science of morals, while he who has the habit of chastity judges of such matters by a kind of connaturality.
Accordingly it belongs to the wisdom that is an intellectual virtue to pronounce right judgment about Divine things after reason has made its inquiry, but it belongs to wisdom as a gift of the Holy Ghost to judge aright about them on account of connaturality with them: thus Dionysius says (Div. Nom. ii) that "Hierotheus is perfect in Divine things, for he not only learns, but is patient of, Divine things."
Now this sympathy or connaturality for Divine things is the result of charity, which unites us to God, according to 1 Cor. 6:17: "He who is joined to the Lord, is one spirit." Consequently wisdom which is a gift, has its cause in the will, which cause is charity, but it has its essence in the intellect, whose act is to judge aright, as stated above (FS, Question [14], Article [1]).