I said to myself, “Behold, I have obtained for myself great wisdom above all who were before me in Jerusalem. Yes, my heart has had great experience of wisdom and knowledge.” I applied my heart to know wisdom, and to know madness and folly. I perceived that this also was a chasing after wind. For in much wisdom is much grief; and he who increases knowledge increases sorrow.
Traditional attribution
The text names “the Preacher, son of David, king in Jerusalem.” Solomon is the traditional identification.