Psalms 7:9

American Standard Version (ASV):
O let the wickedness of the wicked come to an end, but establish thou the righteous: For the righteous God trieth the minds and hearts.

King James Version (KJV):
Oh let the wickedness of the wicked come to an end; but establish the just: for the righteous God trieth the hearts and reins.