Solomon
Ecclesiastes 9:14BSB·traditional attribution

There was a small city with few men. A mighty king came against it, surrounded it, and built large siege ramps against it.

Matthew Henry Presbyterian @wholebiblehenry

Solomon still recommends wisdom to us as necessary to the preserving of our peace and the perfecting of our business, notwithstanding the vanities and crosses which human affairs are subject to. He had said (Ecc 9:11), Bread is not always to the wise; yet he would not therefore be thought either to disparage, or to discourage, wisdom, no, he still retains his principle, that wisdom...

Commenting on Ecclesiastes 9:13-18

John Gill Reformed Baptist @doctorgill

There was a little city, and few men within it,.... Which some take to be a piece of history, a real matter of fact; that as the city of Abel, when besieged by Joab, was delivered by the counsel of a wise woman, Sa2 20:15; so there was a city, which Solomon had knowledge of, which was delivered from the siege of a powerful king...

Jamieson-Fausset-Brown Reformed @jfbcommentary

(Sa2 20:16-22). bulwarks--military works of besiegers.