Ecclesiastes 3:17

17 I said in my heart, God will judge the righteous and the wicked, for he has appointed a time for every matter, and for every work.

Ecclesiastes 3:17 In-Context

15 That which is, already has been; that which is to be, already has been; and God seeks what has been driven away.
16 Moreover I saw under the sun that in the place of justice, even there was wickedness, and in the place of righteousness, even there was wickedness.
17 I said in my heart, God will judge the righteous and the wicked, for he has appointed a time for every matter, and for every work.
18 I said in my heart with regard to the sons of men that God is testing them to show them that they are but beasts.
19 For the fate of the sons of men and the fate of beasts is the same; as one dies, so dies the other. They all have the same breath, and man has no advantage over the beasts; for all is vanity.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.