Ecclesiastes 8:15-17

ISV(i) 15 So then I recommended enjoyment of life, because it is better on earth for a man to eat, drink, and be happy, since this will stay with him throughout his struggle all the days of his life, which God grants him on earth.
16 When I dedicated myself to experience wisdom and to observe what is undertaken on earth—even going without sleep day and night— 17 I saw all of it as the activity of God. Frankly, a human being cannot understand what happens on earth, because however hard a man works to discover it, he will not find out. Despite what he thinks he knows, he will not be able to figure it out.