2 Samuel 7:27
For thou, O Lord of hosts, God of Israel, hast revealed to thy servant, saying, I will build thee an house: therefore hath thy servant found in his heart to pray this prayer unto thee.
Cross-reference
In 2 Samuel 7:11, God promises to make David a house — the very revelation David refers to in his prayer as the basis for his courage.
1 Chronicles 17:25 is the parallel account of David's prayer, using nearly identical wording to acknowledge God's promise of a house.
1 Chronicles 17:26 continues David's prayer, affirming that God has promised this good thing — closely tied to the same prayer in 2 Samuel.
In 1 Samuel 25:28, Abigail prophesies that God will make David a sure house — a direct precursor to the promise David prays about here.
1 Kings 2:24 shows Solomon acknowledging that God fulfilled the promise to build David's house — the very promise that gave David courage to pray.
In 1 Kings 8:25, Solomon echoes this same prayer, asking God to keep the promise to David about a perpetual throne.
1 Samuel 2:35 promises a faithful priest whose house God will build — a parallel promise to David's house, though for a different recipient.