NET
31 Now David had been told, “Ahithophel has sided with the conspirators who are with Absalom.” So David prayed, “Make the advice of Ahithophel foolish, O Lord.”
Darby
31 And one told David saying, Ahithophel is among the conspirators with Absalom. Then said David, Jehovah, I pray thee, turn the counsel of Ahithophel into foolishness.
KJV
31 And [one] told David, saying, Ahithophel [is] among the conspirators with Absalom. And David said, O LORD, I pray thee, turn the counsel of Ahithophel into foolishness.