2 Samuel 7:27

27 since You, Lord of Hosts, God of Israel, have revealed this to Your servant when You said, 'I will build a house for you.' Therefore, Your servant has found the courage to pray this prayer to You.

2 Samuel 7:27 Meaning and Commentary

2 Samuel 7:27

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.

2 Samuel 7:27 In-Context

25 "Now, Lord God, fulfill the promise forever that You have made to Your servant and his house. Do as You have promised,
26 so that Your name will be exalted forever, when it is said, 'The Lord of Hosts is God over Israel.' The house of Your servant David will be established before You
27 since You, Lord of Hosts, God of Israel, have revealed this to Your servant when You said, 'I will build a house for you.' Therefore, Your servant has found the courage to pray this prayer to You.
28 Lord God , You are God; Your words are true, and You have promised this grace to Your servant.
29 Now, please bless Your servant's house so that it will continue before You forever. For You, Lord God , have spoken, and with Your blessing Your servant's house will be blessed forever."
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.