David in the Wilderness

231 Now they told David, "Behold, the Philistines are fighting against Kei'lah, and are robbing the threshing floors." 2 Therefore David inquired of the Lord, "Shall I go and attack these Philistines?" And the Lord said to David, "Go and attack the Philistines and save Kei'lah." 3 But David's men said to him, "Behold, we are afraid here in Judah; how much more then if we go to Kei'lah against the armies of the Philistines?" 4 Then David inquired of the Lord again. And the Lord answered him, "Arise, go down to Kei'lah; for I will give the Philistines into your hand. 5 And David and his men went to Kei'lah, and fought with the Philistines, and brought away their cattle, and made a great slaughter among them. So David delivered the inhabitants of Kei'lah. 6 When Abi'athar the son of Ahim'elech fled to David to Kei'lah, he came down with an ephod in his hand.

7 Now it was told Saul that David had come to Kei'lah. And Saul said, "God has given him into my hand; for he has shut himself in by entering a town that has gates and bars." 8 And Saul summoned all the people to war, to go down to Kei'lah, to besiege David and 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.