24 And Abiathar came up, and behold, Zadok came also with all the Levites, bearing the ark of the covenant of God. And they set down the ark of God until the people had all passed out of the city. 25 Then the king said to Zadok, "Carry the ark of God back into the city. If I find favor in the eyes of the Lord, he will bring me back and let me see both it and his dwelling place. 26 But if he says, 'I have no pleasure in you,' behold, here I am, let him do to me what seems good to him." 27 The king also said to Zadok the priest, "Are you not a seer? Go back[1] to the city in peace, with your two sons, Ahimaaz your son, and Jonathan the son of Abiathar. 28 See, I will wait at the fords of the wilderness until word comes from you to inform me." 29 So Zadok and Abiathar carried the ark of God back to Jerusalem, and they remained there. 30 But David went up the ascent of the Mount of Olives, weeping as he went, barefoot and with his head covered. And all the people who were with him covered their heads, and they went up, weeping as they went.

31 And it was told David, "Ahithophel is among the conspirators with Absalom." And David said, "O Lord, please turn the counsel of Ahithophel into foolishness." 32 While David was coming to the summit, where God was worshiped, behold, Hushai the Archite came to meet him with his coat torn and dirt on 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 Absalom, '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 Ahithophel. 35 Are not Zadok and Abiathar the priests with you there? So whatever you hear from the king's house, tell it to Zadok and Abiathar the priests. 36 Behold, their two sons are with them there, Ahimaaz, Zadok's son, and Jonathan, Abiathar'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 Absalom was entering Jerusalem.

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

Commentary on 2 Samuel 15:24-30

(Read 2 Samuel 15:24-30)

David is very careful for the safety of the ark. It is right to be more concerned for the church's prosperity than our own; to prefer the success of the gospel above our own wealth, credit, ease, and safety. Observe with what satisfaction and submission David speaks of the Divine disposal. It is our interest, as well as our duty, cheerfully to acquiesce in the will of God, whatever befalls us. Let us see God's hand in all events; and that we may not be afraid of what shall be, let us see all events in God's hand. David's sin was ever before him, Psalm 38:4.

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.