2 Samuel 19:40
Then the king went on to Gilgal, and Chimham went on with him: and all the people of Judah conducted the king, and also half the people of Israel. Then the king went on to Gilgal, and Chimham went on with him: and all the people of Judah conducted the king, and also half the people of Israel.
The verse belongs to the account of David's return to Jerusalem after Absalom's rebellion and defeat, within the history of David's reign and its troubles and his later history. On that return he went on to Gilgal with Chimham accompanying him, escorted by all the people of Judah and half the people of Israel, while Barzillai joined the loyal supporters who went part of the way with him toward Jerusalem after supplying him and his people when they were hungry and weary and thirsty in the wilderness. That homeward journey touched the hearts of many of his old friends.
The verse stands inside the long sorrow and retribution that followed his wrongdoing against Uriah, recording the consequences of his sin and the fulfillment of Nathan's prophetic denunciation. In that setting it illustrates that wrongdoing brings calamity and sorrow on the wrongdoer, that the very kind of evil done to others returns upon oneself, that what a person sows is reaped, and that sin never pays. That retribution followed David through the rest of his life, principally in his own family, including Amnon and Tamar, Absalom's rebellion and unnatural crimes, and even Adonijah's rebellion and death, with the verse itself receiving no separate discussion apart from its place in that history.