31 And it was told David, "Ahith'ophel is among the conspirators with Ab'salom." And David said, "O Lord, I pray thee, turn the counsel of Ahith'ophel into foolishness." 32 When David came to the summit, where God was worshiped, behold, Hushai the Archite came to meet him with his coat rent and earth upon his head. 33 David said to him, "If you go on with me, you will be a burden to me. 34 But if you return to the city, and say to Ab'salom, 'I will be your servant, O king; as I have been your father's servant in time past, so now I will be your servant,' then you will defeat for me the counsel of Ahith'ophel. 35 Are not Zadok and Abi'athar the priests with you there? So whatever you hear from the king's house, tell it to Zadok and Abi'athar the priests. 36 Behold, their two sons are with them there, Ahim'a-az, Zadok's son, and Jonathan, Abi'athar's son; and by them you shall send to me everything you hear." 37 So Hushai, David's friend, came into the city, just as Ab'salom was entering Jerusalem.

Matthew Henry's Commentary on 2 Samuel 15:31-37

Commentary on 2 Samuel 15:31-37

(Read 2 Samuel 15:31-37)

David prays not against Ahithophel's person, but against his counsel. He prayed this, in firm belief that God has all hearts in his hand, and tongues also. But we must second our prayers with endeavours, and David did so, else we tempt God. But we do not find wisdom and simplicity so united in any mere man, that we can perceive nothing which needs forgiveness. Yet, when the Son of David was treated with all possible treachery and cruelty, his wisdom, meekness, candour, and patience, were perfect. Him let us follow, cleave to, and serve, in life and in death.