Psalm 7:9

Put an end to the evil of the wicked, but establish the righteous, O righteous God who searches hearts and minds.

Note Hebrew hearts and kidneys

BSB · Berean Standard Bible
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 · King James Version
Oh let the wickedness of the wicked come to an end, but establish the righteous; their minds and hearts are searched by the righteous God.
WEB · World English Bible
Oh let the wickedness of the wicked come to an end, but establish thou the righteous: For the righteous God trieth the minds and hearts.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

Oh
Psalm 9:5, 6; Psalm 10:15, 18; Psalm 58:6; Psalm 74:10, 11, 22, 23; Isaiah 37:36–38; Daniel 11:45; Acts 12:23
but
Psalm 37:23; Psalm 40:2; 1 Samuel 2:9; Romans 16:25; 1 Thessalonians 3:13; 1 Peter 5:10; Jude 1:1
for
Psalm 17:3; Psalm 44:21; Psalm 139:1; 1 Samuel 16:7; 1 Chronicles 28:9; Jeremiah 11:20; Jeremiah 17:10; Jeremiah 20:12; Revelation 2:23