David is told to go to the city of Keilah, because the Philistines are attacking it. So David enquires of the Lord what he souls do and the Lord tells him to go, David's men however dont want to go as they are afraid, so David enquires of the Lord a second time, and the Lord tells him to go to Keilah and he will deliver the Philistines into his hand. Saul hears that David is on his way to Keilah and seizes the chance to capture David, so he assembles the armies of Israel to attack David and his band of men. David then enquires of the Lord again as to whether the people of Keilah will deliver him into the hand of Saul and the Lord tells David that they will, this is probably due to the fact that previously Saul had had a whole town wiped out for not delivering David to him. David therefore humbles himself and retreats, even though he coudl have probably fought Saul and maybe killed him, again David left him to the Lord, and diverted needless slaughter from another place.