“Then King David rose to his feet and said. ‘Hear me, my brothers and my people. I had planned to build a house of rest for the ark of the covenant of Yahweh, and for the footstool of our God. I made preparations for building. But God said to me. ‘You may not build a house for my name. You are a warrior and have shed blood.’”
This is very reminiscent of chapter 22 in this book. Yahweh did not want King David to build the temple because as a warrior, he had shed blood. King David wanted very much to build this home for Yahweh, a place for the Ark of the Covenant of Yahweh, but Yahweh had other plans.