1 Samuel 23:1-13 ESV
Now they told David, “Behold, the Philistines are fighting against Keilah and are robbing the threshing floors.” Therefore David inquired of the LORD, “Shall I go and attack these Philistines?” And the LORD said to David, “Go and attack the Philistines and save Keilah.” But David’s men said to him, “Behold, we are afraid here in Judah; how much more then if we go to Keilah against the armies of the Philistines?” Then David inquired of the LORD again. And the LORD answered him, “Arise, go down to Keilah, for I will give the Philistines into your hand.” And David and his men went to Keilah and fought with the Philistines and brought away their livestock and struck them with a great blow. So David saved the inhabitants of Keilah.
When Abiathar the son of Ahimelech had fled to David to Keilah, he had come down with an ephod in his hand. Now it was told Saul that David had come to Keilah. And Saul said, “God has given him into my hand, for he has shut himself in by entering a town that has gates and bars.” And Saul summoned all the people to war, to go down to Keilah, to besiege David and his men. David knew that Saul was plotting harm against him. And he said to Abiathar the priest, “Bring the ephod here.” Then David said, “O LORD, the God of Israel, your servant has surely heard that Saul seeks to come to Keilah, to destroy the city on my account. Will the men of Keilah surrender me into his hand? Will Saul come down, as your servant has heard? O LORD, the God of Israel, please tell your servant.” And the LORD said, “He will come down.” Then David said, “Will the men of Keilah surrender me and my men into the hand of Saul?” And the LORD said, “They will surrender you.” Then David and his men, who were about six hundred, arose and departed from Keilah, and they went wherever they could go. When Saul was told that David had escaped from Keilah, he gave up the expedition.
ESV: English Standard Version 2016