This same advice appears in the biblical Book of Ecclesiastes and, in the view of at least one scholar, can be traced back to this passage of the Gilgamesh epic (see “Did Ecclesiastes Copy Gilgamesh?” BR 16:01, by Karel van der Toorn).