So David asked of Yahweh, saying, “Shall I go and strike these Philistines?” And Yahweh said to David, “Go and strike the Philistines and save Keilah.”
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 saved the inhabitants of Keilah.
Then it was told to Saul that David had come to Keilah, so Saul said, “God has delivered him into my hand, for he shut himself in by entering a city with double gates and bars.”
Then David said, “O Yahweh, the God of Israel, Your slave has heard for certain that Saul is seeking to come to Keilah to make the city a ruin on my account.
Will the men of Keilah surrender me into his hand? Will Saul come down just as Your slave has heard? O Yahweh, the God of Israel, I pray, tell Your slave.” And Yahweh 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. Now it was told to Saul that David had escaped from Keilah, so he ceased going out in pursuit.
And 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 give him into his hand.
And 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 second 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 see and know 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.”
So Saul and his men went to seek him, and they told David, and he came down to the rock and stayed in the wilderness of Maon. And Saul heard it and pursued David in the wilderness of Maon.
And 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, but Saul and his men were surrounding David and his men to seize them.