David in the Wilderness

231 And they declare to David, saying, 'Lo, the Philistines are fighting against Keilah, and they are spoiling the threshing-floors.' 2 And David asketh at Jehovah, saying, 'Do I go?—and have I smitten among these Philistines?' And Jehovah saith unto David, 'Go, and thou hast smitten among the Philistines, and saved Keilah.' 3 And David's men say unto him, 'Lo, we here in Judah are afraid; and how much more when we go to Keilah, unto the ranks of the Philistines?' 4 And David addeth again to ask at Jehovah, and Jehovah answereth him, and saith, 'Rise, go down to Keilah, for I am giving the Philistines into thy hand.' 5 And David goeth, and his men, to Keilah, and fighteth with the Philistines, and leadeth away their cattle, and smiteth among them—a great smiting, and David saveth the inhabitants of Keilah. 6 And it cometh to pass, in the fleeing of Abiathar son of Ahimelech unto David, to Keilah, an ephod came down in his hand.

7 And it is declared to Saul that David hath come in to Keilah, and Saul saith, 'God hath made him known for my hand, for he hath been shut in, to enter into a city of doors and bar.' 8 And Saul summoneth the whole of the people to battle, to go down to Keilah, to lay siege unto David and unto his men.

Matthew Henry's Commentary on 1 Samuel 23:1-8

Commentary on 1 Samuel 23:1-6

(Read 1 Samuel 23:1-6)

When princes persecute God's people, let them expect vexation on all sides. The way for any country to be quiet, is to let God's church be quiet in it: if Saul fight against David, the Philistines fight against his country. David considered himself the protector of the land. Thus did the Saviour Jesus, and left us an example. Those are unlike David, who sullenly decline to do good, if they are not rewarded for services.

Commentary on 1 Samuel 23:7-13

(Read 1 Samuel 23:7-13)

Well might David complain of his enemies, that they rewarded him evil for good, and that for his love they were his adversaries. Christ was used thus basely. David applied to his great Protector for direction. No sooner was the ephod brought him than he made use of it. We have the Scriptures in our hands, let us take advice from them in doubtful cases. Say, Bring hither the Bible. David's address to God is very solemn, also very particular. God allows us to be so in our addresses to him; Lord, direct me in this matter, about which I am now at a loss. God knows not only what will be, but what would be, if it were not hindered; therefore he knows how to deliver the godly out of temptation, and how to render to every man according to his works.