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. 32 And it came to pass, when David had come to the summit, where he worshipped God, that behold, Hushai the Archite came to meet him with his coat rent, and earth upon his head. 33 And David said to him, If thou passest on with me, thou wilt be a burden to me; 34 but if thou return to the city, and say to Absalom, I will be thy servant, O king; as I have been thy father's servant hitherto, so now will I be thy servant; then mayest thou for me defeat the counsel of Ahithophel. 35 And hast thou not there with thee Zadok and Abiathar the priests? and it shall be, [that] whatsoever thing thou shalt hear out of the king's house, thou shalt tell it to Zadok and Abiathar the priests. 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 to me everything that ye shall hear. 37 And Hushai David's friend came into the city, and Absalom came into 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.