Solomon
Ecclesiastes 8:15ESV·traditional attribution

And I commend joy, for man has nothing better under the sun but to eat and drink and be joyful, for this will go with him in his toil through the days of his life that God has given him under the sun.

Matthew Henry Presbyterian @wholebiblehenry

Wise and good men have, of old, been perplexed with this difficulty, how the prosperity of the wicked and the troubles of the righteous can be reconciled with the holiness and goodness of the God that governs the world. Concerning this Solomon here gives us his advice. I.

Commenting on Ecclesiastes 8:14-17

John Gill Reformed Baptist @doctorgill

Then I commended mirth,.... Innocent mirth, a cheerfulness of spirit in whatsoever state condition men are; serenity and tranquillity of mind, thankfulness for what they have, and a free and comfortable use of it; this the wise man praised and recommended to good men, as being much better than to fret at the prosperity of the wicked, and the seemingly unequal distribution of things in...

Jamieson-Fausset-Brown Reformed @jfbcommentary

no better thing, &c.--namely, for the "just" man, whose chief good is religion, not for the worldly. abide--Hebrew, "adhere"; not for ever, but it is the only sure good to be enjoyed from earthly labors (equivalent to "of his labor the days of his life").