David wants to show God how much he loves Him by building an elaborate temple for God's presence to dwell in. He tells Nathan about his realization that he is sleeping in a palace while the ark of God is sitting in a tent. David wants to do something special for his God. But God says no. He was not rejecting David. In fact, God will reveal more of his plan here by establishing David's reign for eternity through Jesus Christ. This is far greater than having the plaque on the outside of the temple with your name on it.
When God says 'no' in our lives that is not the ultimate rejection. There is a great possibility that He is preparing something even greater for His children that He loves so much.
"Father, thank You for having great things in store for me."
Heart and Soul,
BAG
<><