2 Samuel 15:35
And hast thou not there with thee Zadok and Abiathar the priests? therefore it shall be, that what thing soever thou shalt hear out of the king’s house, thou shalt tell it to Zadok and Abiathar the priests. And hast thou not there with thee Zadok and Abiathar the priests? therefore it shall be, that what thing soever thou shalt hear out of the king’s house, thou shalt tell it to Zadok and Abiathar the priests.
The verse belongs to the account of David fleeing Jerusalem in fear during Absalom's revolt. It was a pathetic journey in flight that touched the hearts of his old friends. The setting belongs to the family troubles in 2 Samuel 13 to 20 revolving around Absalom the beautiful, including the base conduct of Absalom, the treachery of Ahithophel, and the cursing of Shimei, with Absalom's ambitions roused by fulsome flattery poured out upon a shrewd and handsome prince. Those troubles grew out of David multiplying wives to himself, resulting in a large family of children by different wives in which idleness, luxury, and jealousy developed unenviable characters. The account of David's later troubles, including Absalom's rebellion, is retribution for his wicked conduct toward Uriah, among consequences that followed David through his life.
David arranged for Hushai to tell Zadok and Abiathar the priests, who were with him, whatever he heard out of the king's house. The priests were to relay Hushai's information to David. The circumstances of David's flight from Absalom help explain the feelings expressed in Psalm 3. Even in this flight, David's kindness to the house of Saul is still in evidence.
The great lesson is that no one can walk contrary to God's laws and not suffer, for in every transgression of divine law lies the inherent curse even when God does not openly reprove and seems to wink at blindness.