2 Samuel 15:36

Behold, they have there with them their two sons, Ahimaaz Zadok’s son, and Jonathan Abiathar’s son; and by them ye shall send unto me every thing that ye can hear.

The two youths left with the priests were Ahimaaz the son of Zadok and Jonathan the son of Abiathar, kept there so that by them everything heard could be sent to David as reports of what was happening. The arrangement belongs to the account of Absalom's rebellion, during David's flight from Absalom. It is part of the detailed circumstances surrounding that flight which prompted the feelings expressed in Psalm 3.

That rebellion was the retribution David experienced for his wrongdoing, especially his sin against Uriah. Calamity came upon him through his own family and continued through the rest of his life, showing that wrongdoing brings a corresponding harvest in kind.

The verse stands in the story of troubles in David's family in chapters 13 to 20, growing out of his multiplying wives to himself. That produced a large family of children by different wives, in which idleness, luxury, and jealousy developed unenviable characters. The history revolves around Absalom the beautiful, whose ambitions were roused by fulsome flattery poured out upon a shrewd and handsome prince. It includes Absalom's base conduct, the treachery of Ahithophel, the cursing of Shimei, and the fear and flight of the king on his pathetic journey. It shows that walking contrary to God's laws brings suffering, because every transgression of divine law carries the inherent curse.