2 Samuel 7 - As you read this chapter and 1 Chronicles 17 you'll find yourself wondering if the wording is almost exact. Both chapters record the same event in David's life, the presentation by God of what is referred to as "The Davidic Covenant." To start with, David wanted to build a temple for the Lord, but God declined and said He would give David a son who would be the builder. However, the major part of this covenant is that God promised David a Son, the Messiah, to rule on David's throne forever! This is something Jesus Christ is coming to do after the Tribulation period.
1 Chronicles 17 - In both 2 Samuel 7 and in this chapter the Lord gives David a promise known at "The Davidic Covenant," a promise to make the Christ the permanent king on David's throne. In both accounts David comes before the Lord and is overwhelmed with the promise given to him. His humility is real as he wonders of all that has happened in his life thus far why should he be given the prospect of an eternal kingdom in his name?! But the answer, though not mentioned so much in words, is that he was known as "a man after God's own heart."