Ecclesiastes 3:16-17 KJV

16 And moreover I saw under the sun the place of judgment, that wickedness was there; and the place of righteousness, that iniquity was there.
17 I said in mine heart, God shall judge the righteous and the wicked: for there is a time there for every purpose and for every work.