A Commentary, Critical, Practical, and Explanatory on the Old and New Testaments, by Robert Jamieson, A.R. Fausset and David Brown [1882] at sacred-texts.com
This vow is not elsewhere recorded. It expresses, in strong language, David's intense desire to see the establishment of God's worship as well as of His kingdom.
remember David--literally, "remember for David," that is, all his troubles and anxieties on the matter.
habitation--literally, "dwellings," generally used to denote the sanctuary.
These may be the "words of David" and his pious friends, who,
at Ephratah--or Beth-lehem (Gen 48:7), where he once lived, may have heard of the ark, which he found for the first time
in the fields of the wood--or, Jair, or Kirjath-jearim ("City of woods") (Sa1 7:1; Sa2 6:3-4), whence it was brought to Zion.
The purpose of engaging in God's worship is avowed.
The solemn entry of the ark, symbolical of God's presence and power, with the attending priests, into the sanctuary, is proclaimed in the words used by Solomon (Ch2 6:41).
For thy servant David's sake--that is, On account of the promise made to him.
turn . . . anointed--Repulse not him who, as David's descendant, pleads the promise to perpetuate his royal line. After reciting the promise, substantially from Sa2 7:12-16 (compare Act 2:30, &c.), an additional plea,
is made on the ground of God's choice of Zion (here used for Jerusalem) as His dwelling, inasmuch as the prosperity of the kingdom was connected with that of the Church (Psa 122:8-9).
That choice is expressed in God's words, "I will sit" or "dwell," or sit enthroned. The joy of the people springs from the blessings of His grace, conferred through the medium of the priesthood.
make the horn . . . to bud--enlarge his power.
a lamp--the figure of prosperity (Psa 18:10, Psa 18:28; Psa 89:17). With the confounding of his enemies is united his prosperity and the unceasing splendor of his crown.