#What did Yahweh say to David to keep him from fulfilling the desire of his heart?

Yahweh had told David, "It was in your heart to build a house for my name, but your son will build it instead." [6:7-9]