Zadok was there, too, and all the Levites who were with him were carrying the ark of the covenant of God. They set down the ark of God, and Abiathar offered sacrifices until all the people had finished leaving the city.
References for 2 Samuel 15:24
Then the king said to Zadok, “Take the ark of God back into the city. If I find favor in the LORD’s eyes, he will bring me back and let me see it and his dwelling place again.
References for 2 Samuel 15:25
But if he says, ‘I am not pleased with you,’ then I am ready; let him do to me whatever seems good to him.”
References for 2 Samuel 15:26
The king also said to Zadok the priest, “Do you understand? Go back to the city with my blessing. Take your son Ahimaaz with you, and also Abiathar’s son Jonathan. You and Abiathar return with your two sons.
References for 2 Samuel 15:27
I will wait at the fords in the wilderness until word comes from you to inform me.”
References for 2 Samuel 15:28
So Zadok and Abiathar took the ark of God back to Jerusalem and stayed there.
But David continued up the Mount of Olives, weeping as he went; his head was covered and he was barefoot. All the people with him covered their heads too and were weeping as they went up.
References for 2 Samuel 15:30