The beautiful heart of David proposed building a house for God, but God told David,
“Also the LORD tells you that He will make you a house” (2 Samuel 7:11).
The Lord would not allow David to build the house, but his son would build it. Yet, the Lord commended David for his intentions, and then blessed him beyond measure with the promise stated above, and the Lord detailed that promise, humbly David greatly.
What is in your heart to do for the Lord? He may not allow you to do it, but that does not mean He has rejected you, rather He has other plans, and He will still bless you.