Psalms 7:9

NKJV
Oh, let the wickedness of the wicked come to an end, But establish the just; For the righteous God tests the hearts and minds.