27 For you, Yahweh of Armies, the God of Israel, have revealed to your servant, saying, 'I will build you a house.' Therefore your servant has found in his heart to pray this prayer to you.
*Minor differences ignored. Grouped by changes, with first version listed as example.
Therefore hath thy servant found in his heart - The promises of God are the true guide to the prayers of His people. We may dare to ask anything, how great soever it may be, which God has promised to give. In this and the two following verses David expresses the same wonder at the riches of God's grace, and the same expectation founded on that grace, which Paul does. in such passages as Ephesians 1:5-7; Ephesians 2:7, etc. marginal references.
For thou, O Lord of hosts, God of Israel,.... As he is called in 2-Samuel 7:26,
hast revealed to thy servant; which he otherwise could not have known:
saying, I will build thee an house; see 2-Samuel 7:11,
therefore hath thy servant found in his heart to pray this prayer unto thee; found his heart disposed to this service, or found freedom and boldness in him to put up this prayer to God; what encouraged and emboldened him to do it was the gracious promise of God, that he would build up his family, and establish his kingdom; or otherwise he could not have taken such liberty, and used such boldness with God in prayer, as to have requested it of him.
David felt himself encouraged to offer this prayer through the revelation which he had received. Because God had promised to build him a house, "therefore Thy servant hath found in his heart to pray this prayer," i.e., hath found joy in doing so.
This prayer, &c. - That prayer that is found in the tongue only will not please God. It must be found in the heart. That must be lifted up and poured out before God.
*More commentary available at chapter level.