I. How he would praise God, compare Ps. 111:1. 1. He will praise him with sincerity and zeal—“With my heart, with my whole heart, with that which is within me and with all that is within me, with uprightness of intention and fervency of affection, inward impressions agreeing with outward expressions.” 2. With freedom and boldness: Before the gods will I sing praise unto thee, before the princes, and judges, and great men, either those of other nations that visited him or those of his own nation that attended on him, even in their presence. He will not only praise God with his heart, which we may do by pious ejaculations in any company, but will sing praise if there be occasion. Note, Praising God is work which the greatest of men need not be ashamed of; it is the work of angels, the work of heaven. Before the angels (so some understand it), that is, in religious assemblies, where there is a special presence of angels, 1 Cor. 11:10. 3. In the way that God had appointed: I will worship towards thy holy temple. The priests alone went into the temple; the people, at the nearest, did but worship towards it, and that they might do at a distance. Christ is our temple, and towards him we must look with an eye of faith, as Mediator between us and God, in all our praises of him. Heaven is God’s holy temple, and thitherward we must lift up our eyes in all our addresses to God. Our Father in heaven.
II. What he would praise God for. 1. For the fountain of his comforts—for thy lovingkindness and for thy truth, for thy goodness and for thy promise, mercy hidden in thee and mercy revealed by thee, that God is a gracious God in himself and has engaged to be so to all those that trust in him. For thou hast magnified thy word (thy promise, which is truth) above all thy name. God has made himself known to us in many ways in creation and providence, but most clearly by his word. The judgments of his mouth are magnified even above those of his hand, and greater things are done by them. The wonders of grace exceed the wonders of nature; and what is discovered of God by revelation is much greater than what is discovered by reason. In what God had done for David his faithfulness to his work appeared more illustriously, and redounded more to his glory, than any other of his attributes. Some good interpreters understand it of Christ, the essential Word, and of his gospel, which are magnified above all the discoveries God had before made of himself to the fathers. He that magnified the law, and made that honourable, magnifies the gospel much more. 2. For the streams flowing from that fountain, in which he himself had tasted that the Lord is gracious, Ps. 138:3. He had been in affliction, and he remembers, with thankfulness, (1.) The sweet communion he then had with God. He cried, he prayed, and prayed earnestly, and God answered him, gave him to understand that his prayer was accepted and should have a gracious return in due time. The intercourse between God and his saints is carried on by his promises and their prayers. (2.) The sweet communications he then had from God: Thou strengthenedst me with strength in my soul. This was the answer to his prayer, for God gives more than good words, Ps. 20:6. Observe, [1.] It was a speedy answer: In the day when I cried. Note, Those that trade with heaven by prayer grow rich by quick returns. While we are yet speaking God hears, Isa. 65:24. [2.] It was a spiritual answer. God gave him strength in his soul, and that is a real and valuable answer to the prayer of faith in the day of affliction. If God give us strength in our souls to bear the burdens, resist the temptations, and do the duties of an afflicted state, if he strengthen us to keep hold of himself by faith, to maintain the peace of our own minds and to wait with patience for the issue, we must own that he has answered us, and we are bound to be thankful.
III. What influence he hoped that his praising God would have upon others, Ps. 138:4, 5. David was himself a king, and therefore he hoped that kings would be wrought upon by his experiences, and his example, to embrace religion; and, if kings became religious, their kingdoms would be every way better. Now, 1. This may have reference to the kings that were neighbours to David, as Hiram and others. “They shall all praise thee.” When they visited David, and, after his death, when they sought the presence of Solomon (as all the kings of the earth are expressly said to have done, 2 Chron. 9:23), they readily joined in the worship of the God of Israel. 2. It may look further, to the calling of the Gentiles and the discipling of all nations by the gospel of Christ, of whom it is said that all kings shall fall down before him, Ps. 72:11. Now it is here foretold, (1.) That the kings of the earth shall hear the words of God. All that came near David should hear them from him, Ps. 119:46. In the latter days the preachers of the gospel should be sent into all the world. (2.) That then they shall praise God, as all those have reason to do that hear his word, and receive it in the light and love of it, Acts 13:48. (3.) That they shall sing in the ways of the Lord, in the ways of his providence and grace towards them; they shall rejoice in God, and give glory to him, however he is pleased to deal with them in the ways of their duty and obedience to him. Note, Those that walk in the ways of the Lord have reason to sing in those ways, to go on in them with a great deal of cheerfulness, for they are ways of pleasantness, and it becomes us to be pleasant in them; and, if we are so, great is the glory of the Lord. It is very much for the honour of God that kings should walk in his ways, and that all those who walk in them should sing in them, and so proclaim to all the world that he is a good Master and his work its own wages.