"A small city" etc. Here is noted the deficiency of power, and this with respect to resisting the assailant: therefore he says: "A small city, and few men in it." "The siege was completed." And because it was small and had few men, therefore it was weak for defending itself: whence Jehoshaphat said in 2 Chronicles 20: "In us there is not so great strength that we can resist this great multitude," because, namely, they were few. Especially then they cannot resist, when the assailant is strong: on account of which he says: "There came against it a great king," namely through power: "and surround...ed it," through great malice: "and he built fortifications all around," for battle: "and the siege was completed," through the inability to resist. An example of this is found in Judith 7 concerning Bethulia, which was besieged by Holofernes. This also the Lord foretold to Jerusalem in Luke 19: "Your enemies will surround you with a rampart and press you in on every side."
Spiritually, the city is the Church: the Psalm: "Glorious things are said of you, O city of God." This city is small through humility, because in these the Lord alone dwells: the last chapter of Isaiah: "To whom shall I look, if not to the poor little one, contrite in spirit and trembling at my words"? "Few men in it," in comparison with the wicked: Matthew 20: "Many are called, but few are chosen." The great king is the devil, of whom it is said in the penultimate chapter of Job: "He is king over all the children of pride"; he is also great, according to what is said in the same place: "There is no power on earth that can be compared to him." This king comes against the city through temptations: he surrounds it, by offering manifold pleasures: he built fortifications, by procuring occasions of sin: and he perfectly besieges it, when he entangles them in transgressions of the commandments. Concerning these things, Luke 19: "Your enemies will surround you with a rampart and hem you in and dash you to the ground, and they will not leave a stone upon a stone."
But this wisdom too I saw under the sun, and it is great with me. A small city, and few men in it; and a great king came against it and surrounded it and built against it a great engine. And he found in it a poor and wise man, and this man saved the city by his wisdom; and man did not remember that poor man. While others say that all things are uncertain and that the just man has nothing more than the unjust, I have proved wisdom to be greatest even in this: that it often happens that a city is small and its inhabitants few, and it is girded by an army of countless enemies, and the people with...in are being killed by siege and famine; and suddenly, against everyone's expectation, a humble and poor man is found who, because he has wisdom greater than all the rich, while the great, the powerful and the proud are placed in danger and are terrified at the siege, thinks, inquires and finds how to rescue the city from its evils. And, O the ungrateful forgetfulness of men! after they have been freed, and the captivity loosed, and liberty restored to their country, no one remembers that poor wise man, no one gives thanks for their deliverance, but all honor the rich, who in the danger could give no help. The Hebrew interpreted this passage otherwise, thus: The small city is man, who even among the philosophers is called a lesser world. And the few men in it are the members of which man himself is woven together. And when the great king, the devil, has come against it and has sought a place through which he can break in, there is found in it the humble, wise and quiet thought of the inner man, and it preserves the city, which was encircled and besieged by enemies. And when the man has been rescued from the danger, whether of persecution, or of distress, or of any adverse thing and sin, that outer man, who is the enemy of that poor and wise man, does not remember the inner man nor submit himself to his counsels, but again enjoys his own liberty. Otherwise: The small city, and the few men in it, in comparison with the whole world, is the Church; against it the great king, the devil, often rises up, not because he is great, but because he boasts that he is great, and he surrounds it with a siege, either of persecution or of some other kind of distress. He finds in it a poor and wise man, our Lord Jesus Christ, who became poor for us and is wisdom itself; and that poor man frees the city by his wisdom. How often have we seen the lion who sits in ambush with the rich, that is, with the senators and princes of this world, and schemes against the Church, fall by the wisdom of this poor man? And when this poor man has conquered and the city has been restored to peace, scarcely anyone remembers him, scarcely anyone heeds his commandments; but, giving themselves wholly to luxury and pleasures, they seek riches, which do not free them in need.