Psalm of David. This psalm is generally thought to have been written by David upon his being advanced to the throne; on account of which he praises the Lord, who had supported him under many exercises, and had made good his promise to him, at least in part; and he firmly believed the accomplishment of the rest, that he would perfect what concerned him, Ps 138:8.
It seems as if this psalm was composed between his being king over Judah and over all Israel. Though Theodoret understands the psalm as a thanksgiving of the Jews upon their return from Babylon, which David prophesied of.
The Syriac version calls it a thanksgiving with a prophecy; as indeed it is a prophecy of the Messiah's kingdom, and of the calling of the Gentiles in the latter day, as appears from Ps 138:4.Ver. 1.
I will praise thee with my whole heart,.... Cordially and sincerely, in the uprightness and integrity of his heart; which denotes not the perfection of his service, but the sincerity of it; his heart was in it, and his whole heart; all the powers and faculties of his soul were engaged in it, being deeply sensible of the great favours and high honours bestowed upon him; and though the object of praise, to whom he was obliged for them, is not so fully expressed; yet is easily understood to be Jehovah, the Being of beings, the Father of mercies, even Jehovah, Father, Son, and Spirit, and especially the Messiah; see Ps 111:1;before the gods will I sing praise unto thee; before the princes, as Jarchi; before the kings, as the Syriac version; with which agrees Ps 119:46; and who would join therein, Ps 138:4; or before the judges, as the Targum, Aben Ezra, Kimchi, and Ben Melech; or civil magistrates, who are sometimes called gods, Ps 82:1; and they are the powers ordained of God, and represent him on earth; or the sanhedrim, as the Midrash; or before the gods of the Gentiles, those fictitious deities, above whom Jehovah is; and over whom the psalmist triumphs, having conquered the nations where they were worshipped; and therefore in their presence, and notwithstanding them, or in opposition to them, praised the Lord; see Ps 18:49; or rather before the ark, the symbol of the presence of the true God; or, as Gussetius interprets it, "before thee, O God, will I sing praise"; or I will sing praise to thee, the Son the Messiah, one divine Person before another; the Son before God the Father, and it may be added before God the Holy Spirit, the two other divine Persons; the Septuagint, Vulgate Latin, Ethiopic, and Arabic versions, render it, "before the angels", who are sometimes called gods, Ps 8:5; and who attend the assemblies of the saints and churches of Christ, 1Co 11:10.
Comment. Ebr. p.