18 Then King David went in and sat before the Lord and said, "Who am I, O Lord GOD, and what is my house, that you have brought me thus far? 19 And yet this was a small thing in your eyes, O Lord GOD. You have spoken also of your servant's house for a great while to come, and this is instruction for mankind, O Lord GOD! 20 And what more can David say to you? For you know your servant, O Lord GOD! 21 Because of your promise, and according to your own heart, you have brought about all this greatness, to make your servant know it. 22 Therefore you are great, O Lord God. For there is none like you, and there is no God besides you, according to all that we have heard with our ears. 23 And who is like your people Israel, the one nation on earth whom God went to redeem to be his people, making himself a name and doing for them[1] great and awesome things by driving out[2] before your people, whom you redeemed for yourself from Egypt, a nation and its gods? 24 And you established for yourself your people Israel to be your people forever. And you, O Lord, became their God. 25 And now, O Lord God, confirm forever the word that you have spoken concerning your servant and concerning his house, and do as you have spoken. 26 And your name will be magnified forever, saying, 'The Lord of hosts is God over Israel,' and the house of your servant David will be established before you. 27 For you, O Lord of hosts, the God of Israel, have made this revelation to your servant, saying, 'I will build you a house.' Therefore your servant has found courage to pray this prayer to you. 28 And now, O Lord GOD, you are God, and your words are true, and you have promised this good thing to your servant. 29 Now therefore may it please you to bless the house of your servant, so that it may continue forever before you. For you, O Lord GOD, have spoken, and with your blessing shall the house of your servant be blessed forever."

Matthew Henry's Commentary on 2 Samuel 7:18-29

Commentary on 2 Samuel 7:18-29

(Read 2 Samuel 7:18-29)

David's prayer is full of the breathings of devout affection toward God. He had low thoughts of his own merits. All we have, must be looked upon as Divine gifts. He speaks very highly and honourably of the Lord's favours to him. Considering what the character and condition of man is, we may be amazed that God should deal with him as he does. The promise of Christ includes all; if the Lord God be ours, what more can we ask, or think of? Ephesians 3:20. He knows us better than we know ourselves; therefore let us be satisfied with what he has done for us. What can we say more for ourselves in our prayers, than God has said for us in his promises? David ascribes all to the free grace of God. Both the great things He had done for him, and the great things He had made known to him. All was for his word's sake, that is, for the sake of Christ the eternal Word. Many, when they go to pray, have their hearts to seek, but David's heart was found, that is, it was fixed; gathered in from its wanderings, entirely engaged to the duty, and employed in it. That prayer which is from the tongue only, will not please God; it must be found in the heart; that must be lifted up and poured out before God. He builds his faith, and hopes to speed, upon the sureness of God's promise. David prays for the performance of the promise. With God, saying and doing are not two things, as they often are with men; God will do as he hath said. The promises of God are not made to us by name, as to David, but they belong to all who believe in Jesus Christ, and plead them in his name.