It was told Saul that David was come to Keilah. Saul said, God has delivered him into my hand; for he is shut in, by entering into a town that has gates and bars.
David left Keilah after he learned that he would be vulnerable if he stayed there (1 Samuel 23:13). He did not take revenge on the citizens of Keilah for telling Saul where he was. Saul had taken revenge on the citizens of Nob for not telling him where David was. The number of David’s supporters had grown from 400 (1 Samuel 22:2) to 600. More people were siding with David and were turning from Saul. Saul abandoned his plans to attack Keilah, and David moved on to the wilderness near Ziph.