Then King Solomon said to Abiathar the priest, “Go to your country home in Anathoth. You deserve to die, but I will not have you put to death now, for you were in charge of the Lord's Covenant Box while you were with my father David, and you shared in all his troubles.”
(The priest carrying the ephod was Ahijah, the son of Ichabod's brother Ahitub, who was the son of Phinehas and grandson of Eli, the priest of the Lord in Shiloh.) The men did not know that Jonathan had left.
So David and his men went to Keilah and attacked the Philistines; they killed many of them and took their livestock. And so it was that David saved the town.
Saul was told that David had gone to Keilah, and he said, “God has put him in my power. David has trapped himself by going into a walled town with fortified gates.”