Ecclesiastes 9:1

I have drawn all these things through my heart, so that I might carefully understand. There are just men as well as wise men, and their works are in the hand of God. And yet a man does not know so much as whether he is worthy of love or of hatred

Other versions

King James Version

For all this I considered in my heart even to declare all this, that the righteous, and the wise, and their works, are in the hand of God: no man knoweth either love or hatred by all that is before them.

English Standard Version

But all this I laid to heart, examining it all, how the righteous and the wise and their deeds are in the hand of God. Whether it is love or hate, man does not know; both are before him.

New International Version

So I reflected on all this and concluded that the righteous and the wise and what they do are in God's hands, but no man knows whether love or hate awaits him.