Bring to an end the violence of the wicked and make the righteous secure – you, the righteous God who probes minds and hearts. (NIV)
Oh, let the wickedness of the wicked come to an end, but establish the [uncompromisingly] righteous [those upright and in harmony with You]; for You, Who try the hearts and emotions and thinking powers, are a righteous God. [Rev. 2:23.] (AMP)
Oh let the wickedness of the wicked come to an end; but establish the just: for the righteous God trieth the hearts and reins. (KJV)