Psalm 7:9

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