Once again, Solomon repeats himself from an earlier chapter. Ecclesiastes 3:22 says, “So I perceived that nothing is better than that a man should rejoice in his own works, for that is his heritage.”
Coming to 5:18 he says, “Here is what I have seen: It is good and fitting for one to eat and drink, and to enjoy the good of all his labor in which he toils under the sun all the days of his life which God gives him; for it is his heritage.”