Whence he says: "And I gave my heart to know prudence," with respect to things to be done, "and learning," with respect to things to be known, "and errors," against prudence, "and folly," against learning; because nothing is known perfectly unless its opposite is known. And it is useful to know these things when they are investigated in the proper manner; whence Proverbs, chapter eight: "Receive instruction and not money; choose learning rather than gold."
Here the discovery of spiritual affliction in the consideration thereof is touched upon: because the better a man knows good and evil, the... more he is afflicted when he errs. On account of which he says: "And I knew that in these things also there was labor and affliction of spirit," that is, in the knowledge of useful things: "labor," namely in acquiring; Psalm: "I thought that I might know this, it is labor before me"; "affliction of spirit," after acquisition, either on account of the detestation of fault, or because it is an occasion of pride and impatience, since "knowledge puffs up."
And I gave my heart to know wisdom and knowledge, errors and folly; I came to know that this too is feeding on wind, or presumption of spirit. Contraries are understood through contraries. And the first step of wisdom is to have been free of folly. But no one can be free of folly except one who has understood it. Hence too a great many harmful things have been created in the world, so that, while we avoid them, we may be schooled in wisdom. It was, then, a matter of equal zeal for Solomon to know wisdom and knowledge and, on the other side, errors and folly, so that by seeking the one and turn...ing away from the other his true wisdom might be proved. But in this too, as in the rest, he says that he fed on the winds and was not able to grasp the perfect truth. As for presumption of spirit, or feeding on wind, since it is said quite often in this book, let what we discussed above suffice.
It is Solomon who speaks these words. This Solomon was the third king of Israel, after King Saul and David, the chosen of the Lord. He succeeded his father on the throne and was proclaimed king when the power of the Israelites had already reached its height; he did not go on wearing his people out with war and fighting but lived in peace as far as lay in his power, making it his task not to acquire what did not belong to him but to enjoy what he already had in abundance.… Such is the order he adopts in his account, that first in the early years of his life he devotes his time to education and ...does not take the easy course in the face of the hard work such study involves but uses the choice of his spirit, that is, his natural impulse, for the accumulation of knowledge, even though his goal was achieved by hard work. And thus, when he has matured in wisdom, he does not merely theoretically observe the passionate and irrational deception of mankind in the matter of bodily enjoyments but through the actual experience of each of the things they pursue recognizes their futility.
Solomon is the one speaking here, the third king of Israel whom the Lord had chosen after Saul and David. He received the kingship from his father and extended his rule which brought him renown among the Israelites. Solomon no longer subjected peoples through battle; by conducting himself peacefully and with full authority, he did not devote his energy towards anything not belonging to him.… He claimed to know the efforts needed to attain pleasure and accomplished everything which he had enumerated, an experience which taught him that vanity is the common end of men's pursuits. Ecclesiastes se...ts forth the order in his narrative when during his youth he first had leisure for personal training, for attention to such labors does not indicate laxity. But the Spirit uses free will, a movement proper to our nature, to increase knowledge if a person is to succeed in his endeavors. Thus wisdom grows not by considering reason which closely regards passion and unreason when it comes to that deception arising from corporeal enjoyment; rather it is knowledge about vanity through experience of these endeavors.