King David dedicated all those items to Yahweh. He also dedicated the silver and gold which his army had taken from the nations that they had conquered.