"Now when David had settled into his palace, he said to Nathan the prophet, 'Look, I am living in a cedar house while the ark of the Lord's covenant is under tent curtains'" (vs. 1).
Doesn't building the temple of God seem like the right thing for a man of God like David to do?
David had built himself a permanent home, a king's palace, and the ark of God still resided in a tent, a tabernacle. So David thought the right thing to do was build a permanent home, a temple, for the ark of God.
And Nathan, the prophet of God, even endorsed the plan because he knew David wanted to do what was right (vs. 2).
Neither David nor Nathan consulted God about the construction plan and God had a different plan in mind (vs 3-4). God's plan was not for David to build the temple, but for David's son, Solomon, to build the temple (vs. 11-12).
In the end, both Nathan and David listened to God and did the right thing (vs. 15-27).
But God expects His people not only to do the right thing, but to do the right thing right!