Then when he says, For it is written, he states the reason for the above: first, he tells why the word of the cross is folly to men; secondly, why this folly is the power of God to them that are saved (v. 21). As to the first he does two things: first, he adduces a text which foretells what is asked; secondly, he shows that it has been fulfilled (v. 20).
It should be noted in regard to the first point that anything good in itself cannot appear foolish to anyone, unless there is a lack of wisdom. This, therefore is the reason why the word of the cross, which is salutary for believers, seems fo...olish to others, namely, because they are devoid of wisdom; and this is what he says: For it is written: I will destroy the wisdom of the wise, and the cleverness (prudence) of the clever (prudent) I will thwart. This can be taken from two places: for it is written in Ob (v.8): "Will I not destroy the wise men out of Edom, and understanding out of Mount Esau?"; but it is more explicit in Is (29:14): "The wisdom of their wise men shall perish, and the discernment of their discerning men shall be hid." Now wisdom and prudence are different: for wisdom is knowledge of divine things; hence it pertains to contemplation; "The fear of the Lord is wisdom" (Jb 28:28). Prudence, however, is, properly speaking, knowledge of human things; hence it says in Pr (10:23): "Wisdom is prudence to a man," namely, because knowledge of human affairs is called wisdom. Hence, the Philosopher also says in Ethics VI that prudence is the right understanding of things to be done; and so prudence pertains to reason.
Yet it should be noted that men, however evil, are not altogether deprived of God's gifts; neither are God's gifts in them destroyed. Consequently, he does not say absolutely, "I will destroy the wisdom," because "all wisdom is from the Lord God" (Sir 1:1), but I will destroy the wisdom of the wise, i.e., which the wise of this world have invented for themselves against the true wisdom of God, because as it says in Jas (3:15): "This is not wisdom, descending from above; but earthly, sensual, devilish." Similarly, he does not say, "I will reject prudence," for God's wisdom teaches true prudence, but the prudence of the prudent, i.e., which is regarded as prudent by those who esteem themselves prudent in worldly affairs, so that they cling to the goods of this world, or because "the prudence of the flesh is death" (Rom 8:6). Consequently, because of their lack of wisdom they suppose that it is impossible for God to become man and suffer death in His human nature; but due to a lack of prudence they consider it unbecoming for a man to endure the cross, "despising the shame" (Heb 12:2).
Source: Commentary on 1 Corinthians