I Chronicles 25
"Moreover, David ... set apart for the service some of the sons of Asaph ..." (v1). Now that most of Israel's enemies were subdued, David recognized that the nation had to shift from war to peace. The ark was permanently in Jerusalem, so the tribe of Levi needed new jobs. They no longer had to transport the ark and tabernacle. Now they focused on music, the care of the Temple, and guarding the gates (ch 23-25), etc.
Israel's peace was temporary, but we look forward to a permanent, peaceful Kingdom. Our battles will be over, and we will enjoy new duties.