2 Samuel Chapter 22 Read as one passage
2 Samuel 22:21–26
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.
21The LORD has rewarded me according to my righteousness; He has repaid me according to the cleanness of my hands. 22For I have kept the ways of the LORD and have not wickedly departed from my God. 23For all His ordinances are before me; I have not disregarded His statutes. 24And I have been blameless before Him and kept myself from iniquity. 25So the LORD has repaid me according to my righteousness, according to my cleanness in His sight. 26To the faithful You show Yourself faithful, to the blameless You show Yourself blameless;
What the first hearers heard
For its first hearers this was a royal thanksgiving song, probably sung in worship. It said three things:
- Yahweh is a just judge who vindicates the loyal. David's rise was not luck or a coup. God heard his case against Saul and ruled in his favour. That is what "repaid me according to my righteousness" means.
- David's kingship is legitimate. In a period when people could ask whether David had taken the throne from Saul's house by violence (compare Shimei's charge, "man of blood", 2 Sam 16:7–8), the claim to clean hands answers the accusation: God himself confirmed David's innocence by rescuing him.
- Loyalty to Yahweh's ways matters, and it comes back to a person. The surrounding lines ("I kept the ways of the LORD", v. 22) tie deliverance to covenant faithfulness. This is the common biblical conviction that God makes deeds return on the doer. It reassured Israel that keeping faith with God was not wasted.
Readers of the finished book of Samuel would also hear this song placed near the end of David's story, after Bathsheba and Uriah (2 Sam 11–12). That gives the claim extra weight: it is a confession of loyalty to God set beside a frank record of David's failures, not a cover-up of them.
From the study of 2 Samuel 22:21.
Verse by verse
-
21The LORD has rewarded me according to my righteousness; He has repaid me according to the cleanness of my hands.
Full study →Yahweh settled my account in full, and paid me what my being in the right deserved. He made the cleanness of my hands come back to me.
David speaks like a defendant whose case has been heard and won. The first verb (gamal) means bringing an exchange to its full measure, giving someone what matches their conduct. It is not a prize for being good. "Righteousness" here is the Hebrew idea of being in the right: having kept faith with what he owed God and others, and being the innocent party in the conflict. It is not a claim to be morally flawless. "Clean hands" carries a picture of hands scrubbed with lye, with no blood on them. For anyone who knew David's story, this recalls the times he had his persecutor Saul at his mercy and would not lift a hand against "the LORD's anointed." The last verb pictures conduct as something that goes out and comes back. God made David's loyal, bloodless dealing return to him as rescue.
The verse explains the line just before it ("He rescued me because He delighted in me"). It also opens a framed unit: verse 25 repeats nearly the same words, closing a short stretch in which David makes his case (vv. 22–24: "I kept the ways of the LORD… I was blameless before Him").
-
22For I have kept the ways of the LORD and have not wickedly departed from my God.
Full study →"Because I have guarded the roads Yahweh marked out and stayed on them, and I have not become the guilty one by walking away from my own God."
The verse explains the previous line ("Yahweh repaid me according to my righteousness"). It is a plea of not guilty made before God as judge. In the first half David says he kept watch over Yahweh's ways, the paths of conduct Yahweh sets, the way a guard keeps a post. In the second half he says he did not act guiltily away from his God. The Hebrew packs "departing" into the little word "from", so the wrong he denies is desertion: leaving the God who is personally "mine". The word for "wickedly" means being the guilty party in a case, the opposite of being "in the right" (verse 21). It is a claim of covenant loyalty and of being the innocent party in his conflicts. It is not a claim never to have sinned.
-
23For all His ordinances are before me; I have not disregarded His statutes.
Full study →"Because every one of his rulings stayed right in front of my eyes, and as for his fixed decrees, I never stepped off the road they mark out."
This verse explains the claim of the verse before it, "I have kept the ways of the LORD." David speaks as a king answering to a greater King. God has issued rulings (the just decisions of a judge-king) and statutes (decrees carved and fixed, not up for revision). David says he kept all the rulings in his line of sight, as a traveller keeps a landmark in view. He also says he did not turn aside from the statutes. That is the picture of someone who stays on the road and does not drift to the right or the left. The verb is open-ended in time, so the line can mean both "I did not turn aside" and "I do not turn aside." It describes a settled way of life.
The words are the vocabulary of Deuteronomy's law for kings. There the king must keep the law beside him, read it all his life, and "not turn aside… to the right or to the left" (Deut 17:18–20). David's song claims he did just that. In this hymn of thanks, that claim is the reason God rescued him (vv. 21, 25).
-
24And I have been blameless before Him and kept myself from iniquity.
Full study →"I was whole toward Him, with no divided loyalty and nothing crooked in me, like an offering without blemish. And I stood guard over myself, so that the twisted wrong, and the guilt that comes with it, never became mine."
David is not claiming to be sinless. "Blameless" here (Hebrew tamim) is the same word used for a sacrificial animal that is whole and without defect. In a person it means integrity: a heart that is all in, undivided in its loyalty to the LORD. The word "to Him" points the claim at God. This is about how David stood in the relationship, not a general score of good deeds.
The second line pictures a watchman. David says he kept watch over his own life, as Deuteronomy urges Israel to "guard yourself". What he guarded against is ʿavon, a word that covers the crooked act, the guilt it creates and the consequences it drags behind it. "My" may mean "the guilt that would have attached to me" or "the wrong I was prone to"; either way, it is something he avoided, not something he confesses.
The verse sits at the centre of a frame: "the LORD has repaid me according to my righteousness" (v. 21) and the same again in verse 25. It gives the reason. God dealt faithfully with David because David was faithful to Him, and verse 26 goes on to say that "with the faithful You show Yourself faithful".
-
25So the LORD has repaid me according to my righteousness, according to my cleanness in His sight.
Full study →And so Yahweh gave back to me what matched my conduct: he dealt with me in keeping with my being in the right, in keeping with my clean hands, the innocence he himself saw with his own eyes.
This is the closing line of a small unit (vv. 21–25) that begins and ends with the same idea: Yahweh has "returned" to me according to my righteousness and the cleanness of my hands. The verb pictures a deed coming back around to the one who did it, the way a payment comes back or an answer is returned. It is less a prize handed out than a fair verdict carried out.
"Righteousness" here means being in the right, the loyal and innocent party in a dispute, not a claim to have never sinned. "Cleanness" is the old picture of hands washed clean: in the parallel Psalm 18 it is "the cleanness of my hands". In David's story that means, above all, hands with no blood on them. Twice he could have killed Saul, "Yahweh's anointed", and twice he refused. Back then David had said to Saul, "Yahweh returns to each man his righteousness and his faithfulness" (1 Sam 26:23). Now he sings that it happened.
"In front of his eyes" puts the final verdict with God. Whatever Saul's courtiers said, Yahweh saw the case and judged it. The next verses (26–27) widen this into a principle: God shows himself loyal to the loyal and blameless to the blameless.
-
26To the faithful You show Yourself faithful, to the blameless You show Yourself blameless;
Full study →"In your dealings with someone who keeps faith, you prove yourself one who keeps faith. With a warrior whose loyalty is whole and undivided, you show yourself whole and undivided."
David is singing about how God has treated him. In verses 21–25 he has just said God repaid him "according to my righteousness": he kept God's ways and was whole (tāmîm) toward him. Here he turns that into a general rule about God, phrased as two short mirror-image lines. Each line takes a word describing a person and echoes it straight back as a verb describing God: loyal → you act loyal; whole → you act whole. The echo is audible in Hebrew (ḥāsîd / titḥassād; tāmîm / tittammām), and both verbs seem to have been coined for this poem.
The first word, ḥāsîd, is not mainly about pity or about being religious. It describes someone who practises ḥesed: steady, committed kindness and loyalty within a relationship, the kind that keeps its word when it would be easier not to. The second, tāmîm, is the word for a sacrificial animal with no defect. Applied to a person, it means integrity and undivided commitment, not a record without a single sin. In 2 Samuel the person is a gibbôr, a fighting man (the Psalm version says just "man"), which fits a victory song by a warrior king.
The Hebrew verbs describe what God habitually does: this is how he always deals. The thought continues into the next verse. With the pure he is pure, but with the crooked he shows himself twisty, outwitting them at their own game. God meets each person in kind: faithfulness with faithfulness, integrity with integrity, crookedness with a match for its crookedness.
Where the English drifted
-
in v21
righteousness
ṣәdāqâ
- What we hear
- Moral perfection or general holiness, so the line sounds like boasting of sinlessness. Or, in some theological settings, a righteousness credited to a person from outside.
- What they heard
- Being in the right in a relationship or dispute: having kept faith with one's obligations, and being the innocent party when accused. David claims to be the wronged and loyal party, not to have no faults.
-
in v21
rewarded
gāmal
- What we hear
- A prize or bonus earned for good performance.
- What they heard
- Dealt with in full measure: repaid in a way that matches the conduct, a word equally used for paying back evil (1 Sam 24:17; Deut 32:6). The emphasis is on just settlement, not on prizes.
-
in v22
wickedly
rāshaʿ
- What we hear
- Sinister, monstrous evil; the behaviour of a villain. A reader may hear David claiming he never did anything truly evil, which looks absurd after the Bathsheba story.
- What they heard
- Being the guilty party, in the wrong before a judge (the opposite of tsaddiq, 'in the right'). With 'from', it means guiltily deserting one's God. It is a verdict about where one stands, not a boast of moral perfection.
-
in v23
judgments (KJV, YLT)
mishpāṭîm
- What we hear
- God's verdicts of punishment or condemnation, or else personal opinions.
- What they heard
- The rulings and just requirements God has laid down as judge-king, his body of decisions about what is right. Here they are things to be kept in view and obeyed, not penalties being suffered.
-
in v24
perfect (WEB, YLT; KJV elsewhere for this word)
tamim
- What we hear
- Morally flawless; never having done anything wrong; sinless.
- What they heard
- Whole, complete, without defect: integrity and undivided loyalty, as in an unblemished offering. A tamim person could still sin and repent (Noah, Abraham and David are all called or call themselves tamim).
-
in v24
iniquity
ʿavon
- What we hear
- An old-fashioned word for wickedness or sin in general.
- What they heard
- A crooked act together with the guilt it fastens on the doer and the consequences that follow: something one 'bears'.
-
in v25
righteousness
tsedaqah
- What we hear
- Moral perfection or sinlessness, or alternatively a smug 'self-righteousness', or (in theological use) a person's standing before God for salvation.
- What they heard
- Being in the right within a relationship or dispute: loyal conduct and innocence of the specific wrong charged. Here, David's loyal refusal to harm Saul and his faithfulness to Yahweh's ways.
-
in v25
rewarded (WEB, also NIV/ESV)
heshiv (hiphil of shuv)
- What we hear
- A bonus or prize given for good performance.
- What they heard
- 'Gave back, returned': God made David's conduct come back on him in matching treatment, as a just judge does. It is a verdict carried out, not an incentive.
-
in v26
merciful (KJV, WEB, ESV)
ḥāsîd / titḥassād
- What we hear
- Inclined to pity and leniency, especially letting off someone who deserves punishment; 'be merciful and God will be merciful to you.'
- What they heard
- Loyal, faithful, committed in kindness within a relationship. The person keeps faith and does the right, generous thing he owes. God answers by keeping faith.
-
in v26
perfect (WEB, YLT; KJV in places)
tāmîm / tittammām
- What we hear
- Flawless, sinless, never having done wrong.
- What they heard
- Whole, sound, complete. Used of a person, it means integrity and undivided loyalty, with no double-dealing toward God. It is the same word used of an unblemished sacrificial animal.
Every word
-
יִגְמְלֵ֥נִי
yigmelēnî · H1580
to deal fully with, repay; to wean, to ripen · v21
"He dealt with me / paid me out." The verb means bringing something to its full measure. Here it is God giving David what fits his conduct. It is a neutral word: the same verb is used for paying back evil. It opens the line with the verb first, so the stress falls on what God did.
-
יְהוָ֖ה
YHWH · H3068
Yahweh, the LORD · v21, v22, v25
Israel's God, named personally. In this psalm he acts as the judge who hears David's case and the covenant Lord who stands by his loyal king.
-
כְּצִדְקָתִ֑י
kәṣidqātî · H6666
rightness, being in the right, loyalty to obligations · v21, v25
"According to my being in the right." This is not a claim to be sinless. David is saying that in his dispute with his enemies he was the one in the right, and that he kept faith with what he owed God and others.
-
כְּבֹ֥ר
kәbōr · H1252
cleanness, purity (related to bōr, "lye, soap") · v21, v25
"According to the cleanness of." The word is tied to the alkali used for scrubbing (Job 9:30). It pictures hands with no stain on them, especially no bloodguilt.
-
יָדַ֖י
yāday · H3027
hand(s) · v21
"My hands" (a pair). Hands stand for what a person actually does. Clean hands means innocent conduct: no violence, no bribery, no blood shed wrongly.
-
יָשִׁ֥יב
yāšîb · H7725
to bring back, return, repay · v21, v25
"He brought back / returned." The causative form of "turn, return". A person's conduct comes back to them. God makes David's clean dealing come home to him as deliverance.
-
לִֽי׃
lî · H9030
to me · v21
"To me." It closes the line on David as the one who receives, echoing the "me" attached to the first verb, so the verse begins and ends with God acting toward David.
-
כִּ֥י
kî · H3588A
for, because · v22, v23
Gives the reason for verse 21: Yahweh repaid David 'according to my righteousness' because of what follows. It ties the claim of reward to a claim of conduct.
-
שָׁמַ֖רְתִּי
shāmartî · H8104G
keep, guard, watch, observe · v22, v24
'I have kept' in the sense of guarding and carefully observing, as a watchman keeps a post. The completed verb form presents David's loyalty as an established record looking back over his life.
-
דַּרְכֵ֣י
darkê · H1870G
way, road, path; conduct · v22
'The ways of' — the paths Yahweh marks out for people to walk in, i.e. the conduct he requires. The picture is of a road one stays on rather than leaves.
-
וְלֹ֥א
wəlōʾ · H3808
and not · v22, v23
Introduces the negative half of the claim, mirroring the positive first half: kept the way / did not leave it.
-
רָשַׁ֖עְתִּי
rāshaʿtî · H7561
be guilty, be in the wrong, act wickedly · v22
'I have been in the wrong / acted wickedly.' The root carries a strong legal flavour: the rashaʿ is the guilty party. Combined with 'from', it means to act guiltily by going away from God.
-
מֵאֱלֹהָֽי׃
mēʾĕlōhāy · H0430G
from my God · v22
'From' (min) plus 'my God'. The 'from' implies movement away, so the clause means 'I have not guiltily departed from my God'. 'My God' stresses a personal, covenant bond that David claims not to have betrayed.
-
כָל־
khol · H3605
all, every · v23
'All' his rulings, not a chosen few. The point is that David's attention was complete.
-
מִשְׁפָּטָ֖יו
mishpāṭāw · H4941G
judgment, ruling, ordinance, justice · v23
'His rulings': the decisions and just requirements God has laid down, like the case decisions of a judge-king. In English, 'judgments' can sound like punishments, but that is not the meaning here.
-
לְנֶגְדִּ֑י
lᵉnegdî · H5048
in front of, opposite, before · v23, v25
'In front of me' or 'in my view.' David kept God's rulings in his line of sight, the way a traveller keeps a landmark in view. It describes steady attention, not past experience.
-
וְחֻקֹּתָ֖יו
wᵉḥuqqōtāw · H2708
statute, fixed decree · v23
'His statutes': fixed, set-down decrees. The root means to carve or engrave. The word is placed first for emphasis: 'as for his statutes…'
-
אָס֥וּר
ʾāsûr · H5493I
turn aside, depart, swerve · v23
'I turn aside.' The picture is of leaving a road. The verb form is open-ended. In this poem it can describe the past ('I did not turn aside') or a settled habit ('I do not turn aside').
-
מִמֶּֽנָּה׃
mimmennâ · H4480A
from (+ 'it/her') · v23
'From it.' The 'it' is feminine and singular, and it points back to the statutes treated as one whole body. David did not step off the path they mark out.
-
וָאֶהְיֶ֥ה
vaʾehyeh · H1961
and I was · v24
The 'and' plus past-narrative form carries on David's account of how he has lived. It describes a past course of conduct, not a one-off moment, and it explains why the LORD has 'repaid' him (vv. 21, 25).
-
תָמִ֖ים
tamim · H8549
whole, complete, without blemish; blameless · v24, v26
The central claim. David says he was whole and undivided in his loyalty, with nothing crooked or held back, the way an offering had to be whole and without defect. It is a claim of integrity, not of never having sinned.
-
ל֑וֹ
lo · H9033
to him · v24
'Toward him' or 'in relation to him'. The wholeness is pointed at God: it describes a relationship of loyalty more than a general moral record. Psalm 18 has 'with him'.
-
מֵעֲוֹנִֽי׃
meʿavoni · H5771
from my iniquity / guilt · v24
'From my ʿavon': from the twisted wrongdoing, and the guilt it brings, that would otherwise have been mine. 'My' suggests either the guilt he would have taken on or the wrong he was personally prone to; it does not admit to guilt he actually had.
-
לִ֖י
lí
to me · v25
Marks David as the one who receives the return. It is personal: this is what Yahweh did for me in my case.
-
עֵינָֽיו׃
'eináv · H5869
his eyes · v25
'His eyes' is a Hebrew way of saying 'his view, his judgment'. The innocence that counts is innocence as God sees and assesses it, whatever human accusers claimed.
-
עִם־
ʿim · H5973
with · v26
'In company with, in dealing with.' It sets up a relationship: how God acts inside his dealings with a certain kind of person. Compare Deuteronomy 18:13, 'you shall be blameless with (ʿim) the LORD your God.'
-
חָסִ֖יד
ḥāsîd · H2623
loyal, faithful, devoted · v26
A person who practises ḥesed, the loyal, committed kindness owed within a relationship. Here it means someone who keeps faith with God and with others. It is not simply a 'pious' or emotionally merciful person.
-
תִּתְחַסָּ֑ד
titḥassād · H2616
show oneself loyal/kind · v26
'You show yourself (or act as) one who is loyal.' The verb is built from the same root as the noun just before it. God answers loyalty with loyalty. This verb form appears only here and in Psalm 18:25. The Hebrew tense describes what God habitually does.
-
גִּבּ֥וֹר
gibbôr · H1368
warrior, mighty man · v26
A fighting man or champion. In this victory song by a warrior king, it pictures the soldier whose loyalty is undivided. The Psalm version reads simply 'man' (see textual notes).
-
תִּתַּמָּֽם׃
tittammām · H8552
show oneself whole/blameless · v26
'You show yourself whole and with integrity.' Again a matching verb from the same root as the adjective before it. God deals with complete integrity toward the one who has integrity. Like the earlier verb, this form occurs only here and in Psalm 18:25.
The world behind it
- Whose song, and when. The heading (22:1) ties the poem to "the day the LORD delivered him from the hand of all his enemies and from the hand of Saul." The same poem appears, with small differences, as Psalm 18. Its claim of innocence belongs to that conflict. For years Saul hunted David as a traitor, and David's defence was that he had done the king no wrong.
- The Saul episodes behind "clean hands." Twice David could have killed Saul (1 Sam 24; 26) and refused. He said, "there is no evil or rebellion in my hand" (24:11) and "may Yahweh repay each man his righteousness and his faithfulness" (26:23). Saul himself conceded, "you are more in the right than I; you repaid me good" (24:17). 2 Samuel 22:21 uses the same words (righteousness, repay, hand) and presents God's rescue as the verdict on that appeal.
- The court picture. In Israelite justice the "righteous" party was the one in the right in a particular dispute (Deut 25:1). Psalms often contain a "protestation of innocence", in which the speaker lays out their clean record before God the judge (Ps 7:3–8; 17:1–5; 26). This verse belongs to that kind of speech.
- Bloodguilt. Ancient Israel took innocent blood very seriously. It was thought to cling to the hands and to the land (Num 35:33; Deut 21:1–9). Claiming "clean hands" meant, above all, claiming not to be a murderer or usurper. That mattered greatly for a king who came to the throne while Saul's house was falling.
From the study of 2 Samuel 22:21.
Where scholars differ
in v21
How can David claim "righteousness" and "clean hands" when the same book records his adultery with Bathsheba and the killing of Uriah?
-
The claim is limited to the conflict with Saul and his enemies: David was the innocent party in that dispute.
The heading (22:1) ties the song to deliverance "from the hand of Saul". The vocabulary closely matches 1 Sam 24 and 26 (righteousness, repay, "no evil in my hand"). In court usage tsedaqah means being in the right in a specific case.
-
The language is the expected speech of a loyal king before his God (a formal protestation of innocence) and concerns covenant loyalty, especially never turning to other gods, rather than a spotless moral record.
Similar protestations appear in Ps 7, 17 and 26. Kings tradition judges David's loyalty as exemplary "except in the matter of Uriah the Hittite" (1 Kgs 15:5), separating overall covenant faithfulness from particular sins.
-
The placement is deliberate. The editors set the song near the end of 2 Samuel, after chs. 11–20, so that readers weigh the claim against the honest record. The tension is meant to be felt and is not resolved.
2 Samuel 21–24 is widely recognised as a carefully arranged appendix. The book elsewhere refuses to hide David's faults (2 Sam 12; 24). Commentators such as Alter and McCarter note the juxtaposition.
in v21
How old is the poem, and was it composed by David?
-
It is very old poetry, plausibly from David's time or soon after.
Archaic spellings and grammar (including past-tense use of "imperfect" verb forms) and its preservation in two independent copies (2 Sam 22 and Ps 18). Cross and Freedman argued for an early date.
-
It is a royal psalm shaped or expanded in later temple use and attributed to David.
Royal thanksgiving songs were reused in worship. Differences between the two copies show the text circulated and was adapted. The heading's attribution follows a later convention of linking psalms to David's life.
in v22
How can David claim to have kept Yahweh's ways when Samuel itself records his adultery with Bathsheba and the killing of Uriah?
-
The song belongs to the Saul period, before 2 Samuel 11, and the innocence claimed is innocence in that conflict.
The heading (22:1) names deliverance 'from the hand of Saul'; the wording echoes David's own pleas in 1 Sam 24:11–15 and 26:23 ('Yahweh rewards every man for his righteousness').
-
The claim is about covenant loyalty (not deserting Yahweh, not worshipping other gods), not sinless perfection.
The idiom 'act guiltily from my God' denies desertion. Kings judges David as the loyal king whose heart was 'wholly true to Yahweh' (1 Kgs 11:4; 15:3), while noting the Uriah exception (1 Kgs 15:5).
-
The 'I' is the idealized Davidic king as Israel sings it in worship, and the editors of Samuel set the ideal beside the story deliberately.
The song's double use (Psalm 18 for liturgy, 2 Sam 22 in narrative). It is placed in the appendix after the Bathsheba story, and the next poem (23:1–7) is also about the ideal righteous ruler. Some read this as intentional tension or irony; others as an ideal set before later kings.
in v22
When was the song composed?
-
It is very early, possibly from David's time.
Archaic spelling and poetic forms (argued by F. M. Cross and D. N. Freedman), and the old storm-god imagery of vv. 8–16.
-
It took its present shape later, in royal temple worship, perhaps with Deuteronomy-style editing in vv. 21–25.
The concentration of Deuteronomic vocabulary in vv. 21–25 ('keep', 'ways', 'ordinances', 'statutes') leads some scholars to see these verses as a later layer.
in v23
How could David claim that he always kept God's rulings and never turned aside from his statutes, given Bathsheba and Uriah (2 Sam 11)?
-
The song comes from early in David's career, before his sin with Bathsheba.
The heading (22:1) ties it to deliverance 'from the hand of Saul.' The claims fit the period of David's flight, when he repeatedly refused to harm Saul (1 Sam 24, 26; compare 1 Sam 26:23, 'the LORD rewards each man for his righteousness').
-
The claim is about whole-hearted loyalty in the relationship with God, not sinless perfection.
Tāmîm (v. 24) means whole or sincere rather than flawless. The language matches a vassal's declaration of loyalty. Even Kings says David did right 'except in the matter of Uriah the Hittite' (1 Kgs 15:5), which treats his overall record as loyal despite a grave failure.
-
The portrait is a deliberate idealisation of David as the model king, shaped by Deuteronomy's ideas.
The vocabulary (rulings, statutes, not turning aside) is heavily Deuteronomic (Deut 17:18–20). David serves throughout Kings as the measuring stick for later rulers. Placing the song in the closing section, next to stories of David's failures (ch. 24), suggests the editors knew the tension and kept both.
in v23
Do 'his rulings' and 'his statutes' refer to the written Mosaic Torah?
-
Yes, at least in the song's final form: they point to the covenant law as set out in Deuteronomy.
The pairing ḥuqqôt/mišpāṭîm and the verb sûr match Deuteronomy's law for kings (Deut 17:18–20) and its frequent summary formula.
-
In the song's earliest form, they mean God's known requirements more generally, not necessarily a fixed written code.
Many scholars see the poem as old, perhaps older than Deuteronomy in its current form. Royal hymns across the ancient Near East speak of keeping a god's decrees without referring to a specific law book.
in v24
How can David claim to be 'blameless' when Samuel records his adultery with Bathsheba and the murder of Uriah?
-
The song comes from earlier in David's life, before chapter 11.
The heading ties it to deliverance 'from the hand of Saul' (22:1), and verses 21–25 echo David sparing Saul in 1 Sam 24 and 26 ('the LORD repays every man his righteousness', 26:23).
-
Tamim means wholehearted covenant loyalty, not sinlessness, so the claim stands even after his sins.
Noah and Abraham are called tamim but are not shown as sinless. 1 Kgs 11:4 and 14:8 praise David's heart as wholly true to the LORD (no idolatry), while 1 Kgs 15:5 still names the Uriah exception.
-
It is a conventional royal claim of innocence used in worship, voicing the ideal king.
It shares the same form as Psalms 7, 17 and 26 and ancient Near Eastern royal statements of loyalty to the gods. Some scholars treat the poem as a royal psalm used of the Davidic king and not as David's private testimony.
-
The final editors placed it deliberately so that the ideal is set beside the record.
The appendix (chs. 21–24) puts this song next to the census episode, where David confesses 'I have sinned greatly' (24:10). The whole book shows both David's loyalty and his failures.
in v24
What does 'my' in 'from my iniquity' refer to?
-
The guilt that would have attached to me had I done wrong.
ʿavon often means guilt borne by the doer (Lev 5:1; Num 14:34). This is the sense ESV's 'guilt' brings out, and it suits the 'repayment' frame of verses 21 and 25.
-
The wrong I personally was inclined to: a 'besetting' sin.
The possessive can point to a habit or tendency belonging to the speaker. Older commentators and devotional writers often read it this way, though the text does not name any specific sin.
in v25
How can David claim 'righteousness' and 'clean hands' when 2 Samuel also tells of his adultery with Bathsheba and the killing of Uriah?
-
The claim is specific to the case, not a claim of sinlessness: David is the innocent party in the conflict with Saul.
Psalm 18's heading and 2 Sam 22:1 tie the song to rescue 'from the hand of Saul'; tsedaqah is used as a word for being in the right in a dispute (Gen 38:26; 1 Sam 24:17); 1 Sam 26:23 uses the same 'return… righteousness' wording about sparing Saul.
-
The song was composed earlier in David's life, before the Bathsheba affair, and was placed later by the book's editors.
Chapters 21–24 are an appendix collecting material from various periods (e.g. 21:1–14 concerns events early in the reign); the setting given in the heading is the Saul era.
-
The song speaks in the voice of the ideal covenant king (and was used in worship as such), so its claims express what a loyal king should be, not a biography.
Royal psalms elsewhere present the king as representative of the covenant ideal; Psalm 18 ends with 'his anointed, David and his offspring forever' (v. 51), widening the speaker beyond one moment.
-
The editors placed the song deliberately to create tension with the narrative, inviting readers to measure the real David against the ideal.
The song comes after chs. 11–12 and right before the census sin of ch. 24; 1 Kings 15:5 says David did right 'except in the matter of Uriah the Hittite', showing the tradition was aware of the gap.
in v25
Is the shorter 'my cleanness' in 2 Samuel the original wording or a copying slip?
-
Copying slip: 'hands' was lost.
Psalm 18:25, 2 Sam 22:21, and the Septuagint of 2 Samuel all have 'cleanness of my hands'; the full phrase is the fixed idiom.
-
A legitimate shorter variant or deliberate condensation.
The two versions of the song differ in many small, apparently intentional ways; 'my cleanness' makes sense on its own.
in v26
Does God actually change his behaviour to match people, or do people simply experience God according to what they are?
-
Real reciprocity: God actively answers each person in kind, rewarding loyalty and frustrating crookedness.
The surrounding verses speak of God 'repaying' (v. 21, 25). Verse 27b has God actively 'showing himself twisty' toward the crooked. Similar statements appear in 1 Samuel 2:30 and Leviticus 26:23–24.
-
Perception: God is constant, but the faithful experience his faithfulness while the crooked experience him as an opponent.
Elsewhere God's character is fixed (v. 31, 'his way is tāmîm'), and the reflexive verbs can mean 'show/appear as'. Interpreters both ancient and modern have read the verse this way to avoid making God's character depend on human behaviour. The Hebrew itself frames it as God's action, though.
in v26
How can David claim integrity and righteousness (vv. 21–26) given the Bathsheba affair?
-
The song predates 2 Samuel 11 and reflects David's early life, especially his loyalty toward Saul.
The heading ties the song to deliverance 'from the hand of Saul'. 1 Samuel 26:23 uses the same language of righteousness and faithfulness about sparing Saul.
-
The words describe covenant loyalty in general (no idolatry, no abandoning God), not sinlessness, so they are compatible with a repented failure.
tāmîm means 'whole, undivided' and ḥāsîd means 'loyal', not 'flawless'. Kings in Israel were judged chiefly on exclusive loyalty to the LORD (compare 1 Kings 15:3–5, which notes 'except in the matter of Uriah').
-
The final editors placed the song deliberately to present an ideal of kingship, and the tension with chapters 11–20 is intended.
The song's position in the closing section of the book (chs. 21–24) alongside other non-chronological material.
in v26
Is ḥāsîd active ('one who shows loyalty') or passive ('one who receives loyalty/favour')?
-
Active: one who practises ḥesed.
The paired verb in this verse describes God's action, and God himself is called ḥāsîd (Jeremiah 3:12; Psalm 145:17). This is the majority view (e.g. Sakenfeld).
-
Passive or both: one who is the object of God's ḥesed, a 'favoured one'.
The Hebrew word pattern can carry a passive sense. In some Psalms the ḥăsîdîm are primarily those God has chosen and protects.
Sources
- BDB s.v. גָּמַל, צְדָקָה, בֹּר, שׁוּב
- HALOT s.v. גמל ("to complete, deal fully with"), צְדָקָה, בֹּר I/II
- P. Kyle McCarter Jr., II Samuel (Anchor Bible), on 2 Sam 22
- F. M. Cross & D. N. Freedman, Studies in Ancient Yahwistic Poetry (on Ps 18 / 2 Sam 22)
- Robert Alter, The David Story (2 Sam 22 notes)
- K. Koch, "Is There a Doctrine of Retribution in the Old Testament?" (deeds returning on the doer)
- Septuagint, 2 Kingdoms 22:21; Vulgate, 2 Samuel 22:21
- Masoretic Text, Psalm 18:21 (parallel)
- BDB s.v. שָׁמַר, דֶּרֶךְ, רָשַׁע
- HALOT s.v. רשׁע (qal 'be guilty, act wickedly'; hiphil 'declare guilty')
- TDOT, 'rāšaʿ' (Ringgren)
- LXX 2 Kingdoms 22:22; Psalm 17:22 LXX
- Vulgate 2 Samuel 22:22
- Psalm 18:21–25 (Heb. 18:22–26) parallel
- F. M. Cross & D. N. Freedman, 'A Royal Song of Thanksgiving: II Samuel 22 = Psalm 18', JBL 72 (1953)
- P. Kyle McCarter Jr., II Samuel (Anchor Bible)
- Book of the Dead, ch. 125 (negative confession)
- BDB s.v. מִשְׁפָּט, חֻקָּה, נֶגֶד, סוּר
- HALOT s.v. מִשְׁפָּט, חֻקָּה, סור
- Septuagint (Rahlfs), 2 Kingdoms 22:23; Psalm 17:23
- Masoretic Text (Leningrad Codex), 2 Samuel 22:23 and Psalm 18:23
- Deuteronomy 17:18–20; 1 Kings 15:5 (internal parallels)
- P. Kyle McCarter Jr., II Samuel (Anchor Bible), commentary on 2 Sam 22
- Frank Moore Cross & David Noel Freedman, 'A Royal Song of Thanksgiving: II Samuel 22 = Psalm 18'
- IVP Bible Background Commentary: Old Testament, on 2 Samuel 22
- BDB s.v. תָּמִים, שָׁמַר, עָוֺן
- HALOT s.v. תָּמִים; s.v. עָוֺן; s.v. שׁמר (hitpael)
- TDOT, K. Koch, 'ʿāwōn'; J. P. J. Olivier / B. Kedar-Kopfstein, 'tāmam'
- R. Knierim, Die Hauptbegriffe für Sünde im Alten Testament
- A. A. Anderson, 2 Samuel (Word Biblical Commentary)
- F. M. Cross and D. N. Freedman, 'A Royal Song of Thanksgiving: II Samuel 22 = Psalm 18', JBL 72 (1953)
- Septuagint, 2 Kingdoms 22:24; Vulgate, 2 Samuel 22:24
- Community Rule (1QS), usage of tmym derekh
- BDB and HALOT s.v. שׁוּב (hiphil), צְדָקָה, בֹּר, נֶגֶד
- Biblia Hebraica Stuttgartensia, 2 Sam 22 and Ps 18 (parallel text comparison)
- Septuagint (Rahlfs), 2 Kingdoms 22:25
- Vulgate, 2 Samuel 22:25
- P. Kyle McCarter Jr., II Samuel (Anchor Bible) – notes on 2 Sam 22
- Peter C. Craigie, Psalms 1–50 (Word Biblical Commentary) on Psalm 18
- TDOT/TWOT articles on tsedaqah and barar
- IVP Bible Background Commentary: Old Testament, on 2 Sam 22 / Ps 18
- BDB s.v. חָסִיד, חָסַד, תָּמִים, תָּמַם, גִּבּוֹר
- HALOT s.v. חָסִיד; תָּמִים
- Katharine Doob Sakenfeld, The Meaning of Hesed in the Hebrew Bible (1978)
- Nelson Glueck, Hesed in the Bible
- Waltke & O'Connor, An Introduction to Biblical Hebrew Syntax (on the reflexive Hithpael)
- IVP Bible Background Commentary: Old Testament
- Septuagint (2 Kingdoms 22:26; Psalm 17:26 LXX); Vulgate
Original-language data: STEPBible TAHOT/TAGNT (CC BY 4.0).