In 2 Samuel 6 after the failure of David in retrieving the ark (2Sam 6:1-111Now David again gathered all the chosen men of Israel, thirty thousand.2And David arose and went with all the people who were with him to Baale-judah, to bring up from there the ark of God which is called by the Name, the very name of the LORD of hosts who is enthroned [above] the cherubim.3They placed the ark of God on a new cart that they might bring it from the house of Abinadab which was on the hill; and Uzzah and Ahio, the sons of Abinadab, were leading the new cart.4So they brought it with the ark of God from the house of Abinadab, which was on the hill; and Ahio was walking ahead of the ark.5Meanwhile, David and all the house of Israel were celebrating before the LORD with all kinds of [instruments made of] fir wood, and with lyres, harps, tambourines, castanets and cymbals.6But when they came to the threshing floor of Nacon, Uzzah reached out toward the ark of God and took hold of it, for the oxen nearly upset [it].7And the anger of the LORD burned against Uzzah, and God struck him down there for his irreverence; and he died there by the ark of God.8David became angry because of the LORD’s outburst against Uzzah, and that place is called Perez-uzzah to this day.9So David was afraid of the LORD that day; and he said, “How can the ark of the LORD come to me?”10And David was unwilling to move the ark of the LORD into the city of David with him; but David took it aside to the house of Obed-edom the Gittite.11Thus the ark of the LORD remained in the house of Obed-edom the Gittite three months, and the LORD blessed Obed-edom and all his household.) directly the story follows that he brings the ark in the right way to Jerusalem (2Sam 6:12-1912Now it was told King David, saying, “The LORD has blessed the house of Obed-edom and all that belongs to him, on account of the ark of God.” David went and brought up the ark of God from the house of Obed-edom into the city of David with gladness.13And so it was, that when the bearers of the ark of the LORD had gone six paces, he sacrificed an ox and a fatling.14And David was dancing before the LORD with all [his] might, and David was wearing a linen ephod.15So David and all the house of Israel were bringing up the ark of the LORD with shouting and the sound of the trumpet.16Then it happened [as] the ark of the LORD came into the city of David that Michal the daughter of Saul looked out of the window and saw King David leaping and dancing before the LORD; and she despised him in her heart.17So they brought in the ark of the LORD and set it in its place inside the tent which David had pitched for it; and David offered burnt offerings and peace offerings before the LORD.18When David had finished offering the burnt offering and the peace offering, he blessed the people in the name of the LORD of hosts.19Further, he distributed to all the people, to all the multitude of Israel, both to men and women, a cake of bread and one of dates and one of raisins to each one. Then all the people departed each to his house.). The chronicler does not do that. Before continuing with the description of the upbringing of the ark in 1 Chronicles 15, he mentions in this chapter some events that have already taken place. It seems that he wants to encourage the remnant with this. He wants to tell them that David is dismissed by the LORD, but remains the man of His pleasure.
To this end, this chapter describes events and messages which make this clear, regardless of the chronological order. It is a chapter full of blessings that are the part of David. Just as David by his unfaithfulness is not put away by the LORD, so may the returned remnant, for whom the books of Chronicles are written, know that they also have not been dismissed by the LORD. They are a remnant blessed by the LORD.
In the fight against the Philistines in the second part of this chapter we see another aspect. There we see that David is exercised to learn to consult the LORD. The blessed results of this, the two victories, are meant to give David courage to raise the ark to Jerusalem. This will also happen in the next chapter.