Oh, let the evil of the wicked come to an end, and may you establish the righteous— you who test the minds and hearts, O righteous God!
English Standard Version (ESV)
The verse doesn't just ask God to stop the wicked; it reveals God as the one who tests our innermost thoughts and affections, the "hearts and reins." This means God sees beyond our outward actions, directly addressing the hidden motives and desires that truly define us, whether we're righteous or wicked.
Oh, let the evil of the wicked come to an end, and may you establish the righteous— you who test the minds and hearts, O righteous God!
English Standard Version (ESV)
David, feeling deeply wronged and slandered by his enemies, pours out his heart in this psalm, appealing to God's justice. He describes the malicious plots against him and asserts his own innocence and integrity. This verse marks a turning point where he shifts from recounting the injustice to actively praying for God to intervene, to end the wicked schemes, and to vindicate the righteous.
David cries out for the evil of his enemies to stop. But who is really in charge of bringing that to an end?
This verse starts with a powerful plea: "Oh, let the evil of the wicked come to an end." This isn't just a casual wish; it's a deep cry from someone experiencing intense suffering.
Two Ways Wickedness Ends
Regardless of the exact nuance, David is looking to God. He knows that true change, the end of evil, doesn't happen by human effort alone but by divine power.
God Establishes the Righteous
The second part of the verse is a direct contrast: "and may you establish the righteous." It's not enough for evil to stop; God's people need to be upheld, strengthened, and set firm. This is God's active role in supporting those who follow Him, even when they are under attack.
David appeals to God not just for justice, but for God to examine him. What does this intense scrutiny reveal?
Ask a follow-up
The most profound part of this verse, the reason David can even make such a bold prayer, is found in the final phrase: "you who test the minds and hearts, O righteous God!"
The Ultimate Judge
David isn't just praying to a distant deity; he's praying to the one being who can truly see what's going on. He acknowledges God as the one who "tests the minds and hearts." This means God:
Confidence in God's Examination
David's confidence doesn't come from believing he's perfect, but from knowing that God, the perfect judge, sees his integrity. This is a powerful reminder for us: our security isn't in hiding our flaws, but in trusting the God who sees them and still declares us righteous through Christ.
Understand the original words
ra'ah · Hebrew Noun
A state of moral depravity, corruption, or hostility against God’s order; it characterizes those who act in violation of divine law and oppress others.
rasha · Hebrew Adjective
Those who are characterized by guilt, lawlessness, and active opposition to God; they are contrasted with the righteous who follow God's ways.
kilyah / lebab · Hebrew Noun
The inner, hidden part of a person; in biblical anthropology, the 'mind' (literally 'kidneys') and 'heart' represent the seat of thoughts, emotions, intentions, and moral desires that only God can fully examine.
This psalm captures David's deep cry for justice amidst intense persecution by King Saul. It reflects a period where David, though innocent, was relentlessly hunted, forcing him to live as a fugitive and later as a king over only part of Israel. His prayer is a testament to his unwavering faith in God's ultimate righteousness and His ability to discern truth even when the world is in chaos.
c. 1025 BC
Saul Anoints David
King Saul, fearing David's rising popularity and military success, becomes intensely jealous and seeks to kill him, forcing David to flee and live as a fugitive.
c. 1020 BC
David Spares Saul's Life
David has multiple opportunities to kill Saul but refuses, demonstrating his integrity and faith in God's timing, further highlighting the contrast between his character and Saul's.
c. 1012 BC
David Flees to Philistines
Desperate, David seeks refuge with the Philistines, though he avoids direct conflict with Saul by operating in the Negev.
c. 1010 BC
Saul and Jonathan Die
King Saul and his son Jonathan are killed in battle against the Philistines on Mount Gilboa, ending Saul's reign and persecution of David.
c. 1010 BC
David Becomes King of Judah
Following Saul's death, David is first anointed king over the tribe of Judah, while a civil war begins with the house of Saul.
c. 1010 BC - 1003 BC— this verse
David Reigns in Hebron
David rules from Hebron for seven years, facing ongoing conflict and intrigue from the remnants of Saul's loyalists and enemies who question his legitimacy.
c. 1003 BC
David Becomes King of All Israel
David finally unites all the tribes of Israel under his rule, establishing Jerusalem as his capital and consolidating his power.
This verse echoes Psalm 7:9 by highlighting God's unique ability to see beyond outward appearances and examine the true intentions of the heart, a crucial aspect when God chooses and establishes the righteous.
Jeremiah 11:20Jeremiah's plea to God to 'test my reins and my heart' mirrors the psalmist's appeal for God to 'test the minds and hearts,' emphasizing the deep personal intimacy and truth found in God's scrutinizing gaze.
Proverbs 17:3This proverb directly connects the refining power of the furnace for silver and gold to the Lord's testing of the heart, reinforcing the idea in Psalm 7:9 that God's examination of the righteous is a purifying process.
Romans 8:27This New Testament passage affirms that God, who 'searches hearts,' knows the mind of the Spirit, directly relating to the psalmist's confidence that God discerns the righteous because He thoroughly tests intentions.
Revelation 2:23Jesus declares that He will 'give to each of you according to your works,' a truth rooted in His all-knowing nature, as He is the one who 'searches hearts and minds,' mirroring God's role in Psalm 7:9.
calvinPsalms 7:9-11: "Oh let the wickedness of the wicked come to an end; but establish the just: for the righteous God trieth the hearts and reins."
- Let the malice of the wicked come to an end I beseech thee and direct thou the righteous: for God who is righteous, proves [or searches] the hearts and the reins. 10. My defense [or shield] is in God, who saves the upright in heart. 11. God judgeth the righteous, and him who despiseth God, daily.
9 Let the malice of the wicked come to an endow I bes…
clarkePsalms 7:9: "Oh let the wickedness of the wicked come to an end; but establish the just: for the righteous God trieth the hearts and reins."
The wickedness of the wicked - The iniquity of Saul's conduct. But establish the just - Show the people my uprightness.
The verse doesn't just ask God to stop the wicked; it reveals God as the one who tests our innermost thoughts and affections, the "hearts and reins." This means God sees beyond our outward actions, directly addressing the hidden motives and desires that truly define us, whether we're righteous or wicked.
David, feeling deeply wronged and slandered by his enemies, pours out his heart in this psalm, appealing to God's justice. He describes the malicious plots against him and asserts his own innocence and integrity. This verse marks a turning point where he shifts from recounting the injustice to actively praying for God to intervene, to end the wicked schemes, and to vindicate the righteous.
David, feeling deeply wronged and slandered by his enemies, pours out his heart in this psalm, appealing to God's justice. He describes the malicious plots against him and asserts his own innocence and integrity. This verse marks a turning point where he shifts from recounting the injustice to actively praying for God to intervene, to end the wicked schemes, and to vindicate the righteous.
"Oh, let the evil of the wicked come to an end, and may you establish the righteous— you who test the minds and hearts, O righteous God!" — The verse doesn't just ask God to stop the wicked; it reveals God as the one who tests our innermost thoughts and affections, the "hearts and reins." This means God sees beyond our outward actions,…
Get the original Greek and Hebrew, verse-by-verse context, and related passages inside the app.
Last reviewed October 2026