In 1 Chronicles chapters 17-22, we see that King David wants to build a house for the Ark of God, yet God says no, but instead He will build a house through David's son, and it will be an everlasting kingdom. We also see some of David's military success and his fighting men. We then also see that David sins when he send Joab to take a census of Israel. God lets David pick his punishment, and he picks a 3 day plague. David confesses his sin, and places a sacrifice and an altar on Ornan the Jebusite's threshing floor. The plague stops, and this will become the place for the Temple when Solomon builds it. Then King David, plans and prepares for the building of the temple, and then he charges his son, Solomon to be faithful to the Lord. David also charges the leaders of Israel to also be faithful and to help Solomon with the task of building the Temple of the Lord.