1 Chronicles 17:25

For thou, O my God, hast told thy servant that thou wilt build him an house: therefore thy servant hath found in his heart to pray before thee.

Cross-reference

Verse 10 contains the promise of a house that David is referring to in verse 25 — direct inner-biblical reference.

1 John 5:14 Parallel

1 John 5:14 teaches that confident prayer comes from asking according to God's will — exactly David's basis for courage here.

2 Samuel 7:27 records the same prayer of David, nearly verbatim, in the parallel account of this event.

1 Samuel 25:28 Historical context

In 1 Samuel 25:28, Abigail prophesies that God will make David a lasting dynasty, reinforcing the promise that David prays about here.

Ezekiel 36:37 shows God inviting Israel to ask for promised increase — similar to David asking based on God's promise.