2 Samuel 22 is the twenty-second chapter of the Second Book of Samuel in the Hebrew Bible and the Old Testament of the Christian Bible. Jewish tradition attributes the book to the prophet Samuel, with later additions by the prophets Gad and Nathan; modern scholarship, however, regards it as a compilation of independent texts dated to . This chapter contains the account of David's reign in Jerusalem, as well as a song of thanksgiving attributed to him that corresponds to Psalm 18. This chapter is part of a section that includes 2 Samuel 21–24, which are appendices to the Books of Samuel.
Text The original text of this chapter was written in Biblical Hebrew. This chapter is divided into 51 verses.
Textual versions Early witnesses to this chapter in Biblical Hebrew come from the Masoretic Textual tradition, such as the Codex Cairensis (895), the Aleppo Codex (10th century), and the Codex Leningradensis (1008). Fragments containing parts of this chapter in Hebrew were found among the Dead Sea Scrolls, including 4Q51 (4QSam; ), with extant verses 17, 19, 21, 24, 26–28, 30–31, and 33–51.Dead sea scrolls - 2 Samuel4Q51 at the Leon Levy Dead Sea Scrolls Digital Library
A translation into Koine Greek known as the Septuagint was compiled in the last few centuries BCE. Extant ancient manuscripts of the Septuagint version include Codex Vaticanus (B; B; ) and Codex Alexandrinus (A; A; ).
Analysis Literary setting and genre The song presents David's deliverance from his enemies as God's divine providence and interprets his military victories, kingship, and dynasty within that framework. It is commonly classified as a royal song of thanksgiving, but it also contains features of an individual thanksgiving psalm, a victory hymn, and a divine-warrior theophany. The superscription connects the song retrospectively with David's deliverance from Saul and his other enemies, while its conclusion extends divine loyalty beyond David to his descendants.
The chapter belongs to the concluding collection in 2 Samuel 21–24. This collection comprises two narratives of national calamity, concerning the famine and the census; two groups of traditions about David's Mighty Warriors (); and two poems attributed to David. The song in chapter 22 and David's final words in 23:1–7 occupy the center of this arrangement, while the accounts of David's warriors in 21:15–22 and 23:8–39 surround them. This placement presents the poem as a retrospective interpretation of David's reign rather than as the next event in the narrative's chronological sequence.
The song also recalls themes introduced by Hannah's song near the beginning of 1 Samuel. Both describe God as a "rock", celebrate deliverance from enemies, and portray God as reversing human fortunes by bringing down the exalted and raising up the lowly. Hannah's song anticipates the establishment of kingship by concluding with the exaltation of God's king and anointed one, although no Israelite king has yet appeared in the narrative. David's song, placed near the end of his career, retrospectively interprets the reign of the king around whom most of the intervening narrative has revolved.
Relationship to Psalm 18 A closely related form of the song appears as Psalm 18. The versions share the same general sequence and most of their wording, but differ in orthography, morphology, syntax, word order, vocabulary, additions, omissions, and details of their imagery. For example, Psalm 18 refers to the shaking of the "foundations of heaven" (), whereas 2 Samuel refers to the "foundations of the mountains" (). The Samuel version states that the was seen upon the wings of the wind, while the psalm states that the glided upon them.
The differences cannot all be explained with certainty as isolated copying errors. Frank Moore Cross and David Noel Freedman argued that the versions in the books of Samuel and Psalms reflect divergent textual traditions that later influenced one another and were only partially harmonized. Other scholars have proposed that one version was revised from the other or that both developed from an earlier written or oral form.\ Attempts to reconstruct every detail of a single original text have not produced a consensus, and some differences may preserve alternative poetic formulations rather than accidental corruptions.
Jewish commentators have interpreted the relationship between the compositions in both traditional and text-critical terms. Rashi, commenting on the superscription of Psalm 18, understands the song retrospectively: David recited it in old age, after his troubles had passed and he had been delivered from them. Adin Steinsaltz describes Psalm 18 as a slightly revised form of the older text preserved in 2 Samuel 22, whose archaic language includes expressions that are no longer fully understood. This represents one proposed direction of revision; other text-critical reconstructions do not consistently regard either Masoretic version as preserving the earlier reading.
The versions also occupy different literary settings. In 2 Samuel, the song retrospectively interprets David's career within a narrative about the establishment and difficulties of his monarchy. In the Psalter, the superscription reproduces the narrative notice associating the song with David's deliverance, but adds the designation "For the leader" () and calls David "the servant of the ". Psalm 18 also begins with an additional declaration of devotion that is absent from the Samuel version. These features place the composition within the editorial setting of the Psalter, whereas its position in 2 Samuel connects it directly with the retrospective presentation of David's reign.
Date and composition The poem contains archaic linguistic and poetic features, and Cross and Freedman argued that an early form originated during the monarchic period. Such features do not, however, establish when the entire poem reached its present form, when the versions in 2 Samuel and Psalms diverged, or when the song was incorporated into either book. Both forms show evidence of transmission, linguistic updating, and interaction between textual traditions.
Scholars have differed over whether the song is substantially a unified early composition or a composite work. P. Kyle McCarter Jr. proposed that two older poetic compositions, represented principally by verses 2–20 and verses 29–31 and 35–51, were joined with later material, including the declarations of righteousness in verses 21–28. Other literary analyses emphasize the coherence of the song's final form and its progression from distress and deliverance to righteousness, warfare, public thanksgiving, and dynastic affirmation. The date of an early poetic core, the development of the surviving textual forms, and the placement of the poem within 2 Samuel are therefore separate questions.
Themes and theology The song attributes David's deliverance, military success, and kingship to divine protection. Its opening describes the Eternal as David's crag, fortress, rock, shield, refuge, and savior, presenting royal power as dependent upon divine aid rather than David's strength alone. Rashi () connects these metaphors with David's escapes from Saul and other dangers recounted in 2 Samuel. David's distress is represented through the breakers of Death, the torrents of Belial, and the ropes of Sheol. His cry is answered by a divine-warrior theophany in which the earth shakes, the heavens bend, and the Eternal descends amid fire, storm clouds, thunder, and lightning. The exposure of the seabed and the foundations of the world recalls biblical depictions of deliverance through water, particularly the Song of the Sea. David's personal rescue is thus described through imagery associated with Israel's collective redemption.
Verses 21–25 attribute David's deliverance to his righteousness, cleanness (), and faithfulness. These claims create a tension with the narrative of David's adultery with Bathsheba, his arrangement of Uriah the Hittite's death, and the subsequent violence within his household. They have consequently been understood as conventional royal language, a claim of innocence concerning David's enemies, an assertion of covenantal fidelity rather than moral perfection, or an idealized self-presentation that stands in tension with the surrounding narrative.
The poem then broadens David's claim into a principle of moral reciprocity: the Eternal acts faithfully toward the faithful, purely toward the pure, and shrewdly toward the perverse, while saving the lowly and humbling the proud. Rashi identifies the faithful, blameless, and pure figures with Abraham, Isaac, and Jacob, interpreting the blessings received by their descendants as rewards for ancestral righteousness. This reading extends the passage from David's personal conduct to collective and intergenerational merit.
In verses 29–46, deliverance becomes empowerment for warfare. The Eternal illuminates David's darkness, trains his hands for battle, and enables him to defeat internal and foreign enemies. David acts decisively, but the poem presents his strength and victories as divinely enabled. His dominion over foreign peoples consequently reflects a royal theology in which military success confirms divine election. At the same time, the surrounding accounts of famine, execution, census, and plague expose the destructive capacities and limitations of human kingship.
The conclusion identifies David as the Eternal's king and () and extends divine () to David and his descendants. This dynastic conclusion connects the song with the promise of an enduring Davidic house and throne. The poem therefore moves from personal rescue to an affirmation of monarchy and dynasty, while subordinating the human king to the divine power that chooses, protects, equips, and judges him.
Jewish interpretation Jewish commentators traditionally interpreted the song as David's retrospective thanksgiving for deliverance throughout his life. Rashi understood the superscription as referring to David in his old age, after his troubles had passed and he had survived his enemies. He explained the separate mention of Saul by identifying Saul as David's most persistent enemy and pursuer. Radak () similarly stated that David composed the song near the end of his life, after the Eternal had given him rest from his enemies, and noted that the song appears in Psalms with differences at several points.
Traditional Jewish interpretation also relates the poem's general statements to Israel's collective history. Rashi's identification of the faithful, blameless, and pure figures in verse 26 with Abraham, Isaac, and Jacob shifts the emphasis from David's individual moral status to intergenerational merit and the relationship between the patriarchs and Israel.
The Aramaic versions of the song preserve a further history of Jewish interpretation. The () to 2 Samuel 22 and the Targum to Psalm 18 are closely related but not identical. Marian and Willem F. Smelik argue that the relationship between the two Aramaic versions involves dependence, independent variation, and later editorial development rather than the mechanical reproduction of a single translation. Their analysis distinguishes the relationship of each Targum to its Hebrew parent text from the relationship between the two Aramaic texts themselves.
Modern Jewish literary scholarship approaches the poem differently from traditional commentary, while still attending closely to its Hebrew language and literary setting. Robert Alter analyzes its imagery in relation to David's morally complex portrayal in Samuel, while Shimon Bar-Efrat examines its narrative and structural function within the conclusion of the book. These approaches supplement traditional Jewish exegesis without using medieval commentary as evidence for modern source-critical reconstructions.
Structure