Therefore I hated life,.... Not strictly and simply understood, since life is the gift of God; and a great blessing it is, more than raiment, and so dear to a man, that he will give all he has for it: but comparatively, in comparison of the lovingkindness of God, which is better than life; or in comparison of eternal life, which a good man desires to depart from this world, for the sake of enjoying it.
The sense seems to be this, that since the case of wise men and fools was equal, he had the less love for life, the less regard to it, the less desire to continue in it; no solid happiness being to be enjoyed in anything under the sun: though some think that he was even weary of life, impatient of it, as Job, Jonah, and others have been.