There is nothing worthwhile for a man but to eat and drink and afford himself enjoyment with his means. And even that, I noted, comes from God.
To the man, namely, who pleases Him, He has given the wisdom and shrewdness to enjoy himself; and to him who displeases, He has given the urge to gather and amass – only for handing on to one who is pleasing to God. That too is futile and pursuit of wind.
I realized, too, that whatever God has brought to pass will recur evermore; Nothing can be added to it and nothing taken from it – and God has brought it to pass that man revere Him. ~Ecclesiastes~
Translation: everything that happens to us in this life has one purpose…that we revere Him!