David in the Wilderness

231 It was reported to David that the Philistines were raiding Keilah and looting the grain. 2 David went in prayer to God: "Should I go after these Philistines and teach them a lesson?" God said, "Go. Attack the Philistines and save Keilah." 3 But David's men said, "We live in fear of our lives right here in Judah. How can you think of going to Keilah in the thick of the Philistines?" 4 So David went back to God in prayer. God said, "Get going. Head for Keilah. I'm placing the Philistines in your hands. 5 David and his men went to Keilah and fought the Philistines. He scattered their cattle, beat them decisively, and saved the people of Keilah. 6 After Abiathar took refuge with David, he joined David in the raid on Keilah, bringing the Ephod with him.

7 Saul learned that David had gone to Keilah and thought immediately, "Good! God has handed him to me on a platter! He's in a walled city with locked gates, trapped!" 8 Saul mustered his troops for battle and set out for Keilah to lay siege to 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.