From spoil won in battles they dedicated gifts for the maintenance of the house of the LORD.
Observe, 1. There were treasures of the house of God. A great house cannot be well kept without stores of all manner of provisions. Much was expended daily upon the altar - flour, wine, oil, salt, fuel, besides the lamps; quantities of these were to be kept beforehand, besides the sacred vestments and utensils. These were the treasures of the house of God.
Commenting on 1 Chronicles 26:20-28
Among the Hebronites was Jerijah the chief, even among the Hebronites,.... The posterity of Hebron, the son of Kohath: according to the generations of his fathers; a principal man in the families that descended from his ancestors: in the fortieth year of the reign of David; which was the last year of his reign, in which year all the above things were done; the distribution...
The spoils won in battles did they dedicate - It seems these were intended for its repairs. This custom prevailed amongst almost all the people of the earth. All who acknowledged any supreme Being, believed that victory could only come through him; and therefore thought it quite rational to give him a share of the spoils.