Psalms Chapter 18 Read as one passage
Psalm 18:21–23
Put together from the study of each verse: what each one meant, in order, with the background, words and debates of the whole passage said once.
21For I have kept the ways of the LORD and have not wickedly departed from my God. 22For all His ordinances are before me; I have not disregarded His statutes. 23And I have been blameless before Him and kept myself from iniquity.
What the first hearers heard
For Israelites singing this royal song, perhaps at the temple in celebration of the king's victories, verse 21 stated the moral logic of the rescue. The king had stayed loyal to Israel's covenant God and walked the roads God marked out. That is why God came down in storm and fire to save him (vv. 7–19). The verse:
- Presented the ideal king. He is the one Deuteronomy describes, who guards God's instruction and does not turn aside from it. The people's welfare was tied to the king's loyalty.
- Interpreted the victory as justice. The rescue was not luck or favouritism but a verdict. In the dispute between the king and his enemies, God found the king in the right.
- Set out the pattern of loyalty answered by loyalty. The verses that follow say it outright: "with the faithful you show yourself faithful" (v. 25). Hearers would take this as a principle for the whole covenant people.
They would not have heard it as a claim never to have sinned. Israel's worship had ways to deal with sin (sacrifice, confession). The claim is about allegiance: not deserting one's God.
From the study of Psalm 18:21.
Verse by verse
-
21For I have kept the ways of the LORD and have not wickedly departed from my God.
Full study →"Because I have guarded the roads the LORD laid out, and I have not become the guilty one by breaking away from my God."
The verse gives the reason behind verse 20 ("the LORD repaid me according to my righteousness"). The king pictures his life as a journey on God's roads. He has watched over that route the way a sentry watches a gate, staying on it through his whole course of conduct. The second half says the same thing from the other side: he has not done the guilty thing of walking away from his God. The Hebrew word for "acted wickedly" comes from the law court. It names the party found to be in the wrong, and the small word "from" adds movement away. So "wickedly departed" means disloyally deserting, not just doing something bad.
"My God" makes it personal. This is a servant speaking of the lord he belongs to. The claim is not "I never sinned." It is "I never broke faith." In the setting of the psalm, God's dramatic rescue (vv. 4–19) was therefore not arbitrary. It was a loyal God answering a loyal servant, a just verdict in the king's favour.
-
22For all His ordinances are before me; I have not disregarded His statutes.
Full study →"For every one of His just rulings stayed right in front of my eyes, and as for His fixed statutes, I never would push them away from me."
The king is explaining why the LORD rescued and rewarded him (v. 20: "The LORD has rewarded me according to my righteousness"). This verse is the second of his reasons. Two words for God's law are paired, as Deuteronomy pairs them, so together they mean the whole of God's covenant requirements: the rulings a just judge hands down (mishpatim, which here means guidance to live by, not punishments) and the statutes that are fixed and set down, as if carved (chuqqot). He says all of the rulings were "before me": kept in constant view, never out of sight. Then he puts it the other way round: he would never "put away" the statutes. That verb is the one Israel used for getting rid of foreign gods. He treated God's law as something to keep hold of, not something to strip off and discard. The verb form suggests a steady pattern over time ("I never would"), not a single moment. This is not a claim never to have sinned. It is a vassal king's claim of loyalty: he stayed true to his divine overlord's terms and did not drift into "wicked departure" (v. 21).
-
23And I have been blameless before Him and kept myself from iniquity.
Full study →"And so I stayed whole and undivided toward Him. My loyalty was complete, without a flaw, like an offering with no blemish. I stood guard over myself like a sentry, so that no guilt became mine."
The verse looks back. In the crisis the psalm remembers, the speaker did not betray his God. He kept God's rulings in view (v. 22) and refused the wrongdoing that would have stained him with guilt. Underneath "blameless" lies a word for wholeness and integrity, not a claim to have never sinned. "With Him" places that integrity in the relationship with God. "Kept myself" is active self-watching. "My iniquity" is the guilt that would have been his if he had given in. The next verse (v. 24) draws the conclusion: God treated him according to that integrity. Then vv. 25–26 widen it into a principle: with the whole-hearted, God shows Himself whole-hearted.
Where the English drifted
-
in v21
have not wickedly departed
lōʾ rāšaʿtî min
- What we hear
- I have not done anything evil or villainous; I am a morally pure person.
- What they heard
- I have not become the guilty party by breaking away from my God. The word belongs to the law court and to loyalty: it denies desertion and disloyalty, not every possible fault.
-
in v22
judgments (KJV, YLT)
mishpatim
- What we hear
- God's punishments or condemnations, as in 'divine judgment' or 'judgment day.'
- What they heard
- The just rulings and ordinances God has issued as judge: the standards of right conduct the king kept in view and followed.
-
in v23
blameless / perfect (YLT) / upright (KJV)
tamim
- What we hear
- Sinless, morally flawless, never having done anything wrong.
- What they heard
- Whole, complete, without defect in loyalty. Integrity and an undivided heart toward God, the human counterpart of a sacrificial animal with no blemish.
-
in v23
iniquity
avon
- What we hear
- A vague churchy word for 'sin' in general.
- What they heard
- A wrong act together with the guilt and penalty that cling to the one who did it. 'My avon' is guilt that would have been charged to me.
Every word
-
כִּֽי־
kî · H3588A
for, because · v21, v22
Gives the reason for verse 20: the LORD repaid the king 'according to my righteousness' *because* he kept God's ways. It links the claim of loyalty to the rescue just described.
-
שָׁ֭מַרְתִּי
šāmartî · H8104G
guard, watch, keep, observe · v21, v23
'I have kept/guarded.' The verb pictures a watchman guarding something valuable. Here the speaker has carefully stayed on and protected the road God laid out. The form looks back on a whole course of conduct, not a single act.
-
דַּרְכֵ֣י
darkê · H1870G
way, road, path; conduct · v21
'The ways of': literally roads. It is a common Hebrew picture for how one lives. 'The ways of the LORD' are the paths God sets out and expects his people to walk, meaning his covenant instructions as lived conduct.
-
יְהוָ֑ה
YHWH · H3068G
the LORD (the divine name) · v21
Israel's covenant God by his personal name. These are the ways of *this* God, the one bound to Israel and its king, not general morality.
-
וְלֹֽא־
wəlōʾ · H3808
and not · v21, v22
Turns the positive claim into its negative mirror image: kept God's ways, and did not break away from him. The two halves say one thing from two sides.
-
רָ֝שַׁ֗עְתִּי
rāšaʿtî · H7561
be guilty, be in the wrong, act wickedly · v21
'I have acted wickedly / become guilty.' The verb has a strong legal edge: to be the party in the wrong, the one a judge would condemn. Joined with 'from', it means to commit the guilty act of breaking away from God.
-
מֵאֱלֹהָֽי׃
mēʾĕlōhāy · H0430G
from my God · v21
The prefix 'from' (min) carries a sense of movement away, so 'acted guiltily from my God' means 'guiltily departed from my God'. 'My God' stresses a personal bond of allegiance, like a loyal servant's relationship to his lord.
-
כָל־
khol · H3605
all, every · v22
Totality. The king claims he did not pick and choose among God's rulings: every one of them stayed in view.
-
מִשְׁפָּטָ֣יו
mishpatav · H4941G
judgment, ruling, ordinance · v22
'His rulings': the decisions God as judge has laid down, the just case-rulings that define right conduct. Here they are guidance to live by, not sentences of punishment.
-
לְנֶגְדִּ֑י
lenegdi · H5048
in front of, before, opposite · v22
'In front of me', right before my eyes. The picture is of keeping something constantly in sight, as in Ps 16:8, 'I have set the LORD always before me.' There is no verb in the Hebrew; the context of vv. 21–24 makes it past ('were before me').
-
וְ֝חֻקֹּתָ֗יו
vechuqqotav · H2708
statute, fixed decree · v22
'And his statutes': fixed, set-down requirements. The word comes from a root meaning to carve or inscribe, so it suggests something permanently laid down. Put first in its clause for emphasis: 'as for his statutes…'
-
אָסִ֥יר
'asir · H5493G
turn aside; (causative) remove, put away · v22
'I would put away / remove.' The causative form of 'turn aside' means to take something off and get rid of it, the verb used for putting away foreign gods (Gen 35:2; Josh 24:23). The verb form here often describes repeated or habitual past action in a past-tense passage: 'I never would put away.'
-
מֶֽנִּי׃
menni · H4480A
from · v22
'From me.' The statutes are pictured as something attached to the speaker that he refused to take off or push away from himself.
-
וָאֱהִ֣י
va'ehi · H1961
to be, become · v23
'And I was.' This is the ordinary Hebrew past-narrative form, so the speaker looks back on how he actually conducted himself during the troubles the psalm describes. The 'and' ties the line to v. 22: because God's rulings were always before him, he stayed whole.
-
תָמִ֣ים
tamim · H8549
complete, whole, without blemish, of integrity · v23
Whole, undivided, without defect. It is the same word used for a sacrificial animal with no flaw. Here it means integrity and undivided loyalty toward God, not a record without a single sin.
-
עִמּ֑וֹ
immo · H5973
with · v23
'With him': in my relationship with God and in his company. The integrity is measured by how the speaker stands with YHWH, not by how others judge him. The same wording appears in Deut 18:13, 'You shall be tamim with YHWH your God.'
-
מֵעֲוֹנִֽי׃
me'avoni · H5771
iniquity, guilt, punishment for guilt · v23
'From my iniquity/guilt': from (me-) + avon + 'my'. The word covers the wrong act, the guilt that follows, and its penalty. 'My' most likely means guilt that would have been mine if I had done wrong. In other words, he did not let himself incur guilt (see debates).
The world behind it
A royal thanksgiving song. Psalm 18 appears almost word for word as 2 Samuel 22. Its heading ties it to the day "the LORD delivered him from the hand of all his enemies and from the hand of Saul." It is a king's song of thanks for victory and rescue.
A plea of innocence. Verses 20–24 form a self-contained unit. It opens and closes with the same claim: God rewarded me "according to my righteousness… the cleanness of my hands" (vv. 20, 24). In between, it gives the evidence (vv. 21–23). This is the language of a person who has been wrongly attacked and declares himself in the right, as in Psalms 7, 17 and 26. In Israel's thinking, "righteousness" here means being in the right in a relationship or a dispute, not moral perfection.
Loyal servant, faithful lord. In the ancient Near East, a subject king who kept faith with his overlord could expect protection, and one who rebelled could expect punishment. Israel's covenant with its God was shaped in similar terms, especially in Deuteronomy. The phrases "keep the ways," "statutes," "ordinances," "not turn aside" are Deuteronomy's vocabulary. That book specifically required Israel's king to keep God's law and not turn from it (Deut 17:18–20). The king's claim here is that he has been the loyal servant, and his rescue shows God being the faithful protector.
The case against Saul. If the heading is taken at face value, the 'innocence' fits the story of David and Saul. David repeatedly refused to harm Saul, saying "there is no evil or rebellion in my hand" (1 Sam 24:11; cf. 26:23–24, where David speaks of the LORD rewarding "each man for his righteousness and his faithfulness").
From the study of Psalm 18:21.
Where scholars differ
in v21
How can the speaker (traditionally David) claim to be blameless and to have kept God's ways?
-
It is a claim of covenant loyalty, not sinless perfection.
The vocabulary is about allegiance and staying on the road ('not depart', 'not turn aside', v. 22). 'Righteousness' and 'blameless' in Hebrew describe being in the right and wholehearted, not without fault. Noah and Job are also called 'blameless' (Gen 6:9; Job 1:1).
-
It refers to a specific case: David's innocence toward Saul and his other enemies.
The heading links the song to deliverance from Saul. 1 Samuel 24:11 and 26:23 use the same ideas (no rebellion in my hand; the LORD rewards righteousness and faithfulness). David was in the right in that conflict.
-
It is royal liturgy describing the ideal king, used beyond any one moment in David's life.
The psalm ends with God's faithfulness 'to David and his descendants forever' (v. 50). The innocence section echoes Deuteronomy's law for the king (Deut 17:18–20). That suggests the song was sung by and for later kings as a statement of the royal ideal.
-
Some interpreters link the song's date to the claim, placing it before the Bathsheba affair.
The narrative in 2 Samuel places the song near the end of David's life (2 Sam 22, after the events of chs. 11–20). That makes a simple 'before he sinned' explanation hard to sustain from the canonical placement. Defenders appeal to the heading's reference to Saul as indicating original composition earlier.
in v22
How can the king claim this kind of faithfulness, given David's known sins (e.g. Bathsheba and Uriah)?
-
It is a claim of covenant loyalty and integrity, not sinless perfection.
The vocabulary in vv. 21–23 is relational ('not departed from my God', 'blameless with Him'). The Hebrew tamim ('blameless') means whole, wholehearted, having integrity (cf. Gen 6:9; 17:1). 1 Kings 15:5 offers a similar summary of David as faithful 'except in the matter of Uriah.'
-
It is a statement of innocence in a particular dispute, his vindication against Saul and his enemies.
The heading ties the song to deliverance from Saul. Psalms of the innocent sufferer (e.g. Ps 7:3–8; 17:1–5; 26) protest innocence of the specific charges brought by enemies. 1 Sam 24 and 26 show David refusing to harm Saul.
-
It presents the ideal of the law-keeping king, shaped by Deuteronomy, and may reflect later editing or liturgical use of a royal song.
There are close verbal echoes of Deut 17:18–20 and Deuteronomy's paired 'statutes and rulings.' Many critical scholars see vv. 21–25 as reflecting Deuteronomic theology, though others defend an early date for the psalm as a whole.
in v23
What does 'my iniquity' (avoni) mean?
-
Guilt that would have been mine: 'I kept myself from incurring guilt.'
Avon often means guilt or liability (Gen 4:13). This fits the legal-innocence form of vv. 20–24 and David's refusal to incur bloodguilt by killing Saul (1 Sam 24; 26). ESV's 'my guilt' follows this line.
-
A personal or besetting sin: 'the sin I was especially prone to.'
Older devotional commentators (e.g. Matthew Henry, Spurgeon) read the 'my' as pointing to an individual weakness. Grammatically possible, but nothing in the context points to a particular habitual sin. The passage claims integrity, not confession.
-
Simply 'from sin', with the suffix adding little.
Some translations (NIV, NLT, BSB) render it this way for smooth English. It loses the nuance but does not distort the overall sense.
in v23
How can a king (traditionally David) claim to be 'blameless'?
-
It is a claim of innocence in a specific conflict, especially with Saul, not of lifelong sinlessness.
The heading ties the psalm to deliverance from Saul. The vocabulary closely echoes 1 Sam 24–26. The protestation-of-innocence form addresses a charge.
-
It is general covenant integrity: undivided loyalty to YHWH, never turning to other gods.
Tamim with YHWH in Deut 18:13 is about exclusive loyalty. Vv. 21–22 speak of not departing from God and keeping his statutes. Kings in Samuel–Kings are judged mainly on this loyalty (e.g. 1 Kgs 15:5 judges David favorably 'except in the matter of Uriah').
-
It reflects idealized royal language. The psalm, as used in Israel's worship, presents the ideal faithful king.
Royal psalms use stylized language of the king's righteousness (Ps 72; 101). Many scholars see the psalm as reused in the royal liturgy across generations. These views can overlap.
Sources
- BDB s.v. שָׁמַר, דֶּרֶךְ, רָשַׁע
- HALOT s.v. רשׁע (qal 'to be guilty, act wickedly')
- Septuagint, Psalm 17:22 (Rahlfs)
- Vulgate (Gallican Psalter), Psalm 17:22
- 2 Samuel 22:22 (parallel text)
- Peter C. Craigie, Psalms 1–50 (Word Biblical Commentary)
- BDB s.v. מִשְׁפָּט, חֻקָּה, סוּר, נֶגֶד
- HALOT s.v. מִשְׁפָּט; חֻקָּה; סור (hiph.)
- Supplied STEP/TAHOT-style morphology for Ps 18:23 (Heb.)
- Septuagint Ps 17:23 (Rahlfs)
- Vulgate, Gallican Psalter Ps 17:23
- Parallel text 2 Samuel 22:23 (MT)
- Deuteronomy 17:18–20; 4:1–8 (MT)
- Craigie, Psalms 1–50 (WBC 19), on Ps 18
- Code of Hammurabi, prologue and epilogue (for comparative royal justice claims)
- BDB s.v. תָּמִים, עָוֺן, שָׁמַר
- HALOT s.v. תָּמִים; עָוֺן; שׁמר hitpael
- Septuagint Psalm 17:24 (Rahlfs)
- Vulgate Psalm 17:24
- 2 Samuel 22:24 (Masoretic Text)
- Deuteronomy 18:13; 1 Samuel 24 and 26
- 1QS (Community Rule) 1:8; 9:6
- Peter C. Craigie, Psalms 1–50 (WBC)
- IVP Bible Background Commentary: Old Testament, on Psalm 18
Original-language data: STEPBible TAHOT/TAGNT (CC BY 4.0).