I said in my heart, “Come now, I will test you with mirth; therefore enjoy pleasure;” and behold, this also was vanity. I said of laughter, “It is foolishness;” and of mirth, “What does it accomplish?”
Traditional attribution
The text names “the Preacher, son of David, king in Jerusalem.” Solomon is the traditional identification.