So David inquired of the LORD, saying, "Shall I go and attack these Philistines?" And the LORD said to David, "Go and attack the Philistines and deliver Keilah."
Then David inquired of the LORD once more. And the LORD answered him and said, "Arise, go down to Keilah, for I will give the Philistines into your hand."
So David and his men went to Keilah and fought with the Philistines; and he led away their livestock and struck them with a great slaughter. Thus David delivered the inhabitants of Keilah.
When it was told Saul that David had come to Keilah, Saul said, "God has delivered him into my hand, for he shut himself in by entering a city with double gates and bars."
"Will the men of Keilah surrender me into his hand? Will Saul come down just as Your servant has heard? O LORD God of Israel, I pray, tell Your servant." And the LORD said, "He will come down."
Then David and his men, about six hundred, arose and departed from Keilah, and they went wherever they could go. When it was told Saul that David had escaped from Keilah, he gave up the pursuit.
David stayed in the wilderness in the strongholds, and remained in the hill country in the wilderness of Ziph. And Saul sought him every day, but God did not deliver him into his hand.
Thus he said to him, "Do not be afraid, because the hand of Saul my father will not find you, and you will be king over Israel and I will be next to you; and Saul my father knows that also."
Then Ziphites came up to Saul at Gibeah, saying, "Is David not hiding with us in the strongholds at Horesh, on the hill of Hachilah, which is on the south of Jeshimon?
"So look, and learn about all the hiding places where he hides himself and return to me with certainty, and I will go with you; and if he is in the land, I will search him out among all the thousands of Judah."
When Saul and his men went to seek him, they told David, and he came down to the rock and stayed in the wilderness of Maon. And when Saul heard it, he pursued David in the wilderness of Maon.
Saul went on one side of the mountain, and David and his men on the other side of the mountain; and David was hurrying to get away from Saul, for Saul and his men were surrounding David and his men to seize them.