I said in my heart concerning the sons of man: God is testing them, to let them see that they are beasts, they to themselves.
In context
16And again I saw under the sun: in the place of judgment, wickedness was there; and in the place of righteousness, wickedness was there. 17I said in my heart, “God will judge the righteous and the wicked, for there is a time there for every matter and for every deed.” 18I said in my heart concerning the sons of man: God is testing them, to let them see that they are beasts, they to themselves. 19For the fate of the sons of man and the fate of the beast is one and the same fate: as the one dies, so dies the other; they all have one spirit, and man has no advantage over the beast, for everything is a breath. 20All go to one place. All came from the dust, and all return to the dust.