7 Saul soon learned that David was at Keilah. "Good!" he exclaimed. "We've got him now! God has handed him over to me, for he has trapped himself in a walled town!" 8 So Saul mobilized his entire army to march to Keilah and besiege David and his men. 9 But David learned of Saul's plan and told Abiathar the priest to bring the ephod and ask the Lord what he should do. 10 Then David prayed, "O Lord, God of Israel, I have heard that Saul is planning to come and destroy Keilah because I am here. 11 Will the leaders of Keilah betray me to him? And will Saul actually come as I have heard? O Lord, God of Israel, please tell me." And the Lord said, "He will come." 12 Again David asked, "Will the leaders of Keilah betray me and my men to Saul?" And the Lord replied, "Yes, they will betray you." 13 So David and his men-about 600 of them now-left Keilah and began roaming the countryside. Word soon reached Saul that David had escaped, so he didn't go to Keilah after all.

Matthew Henry's Commentary on 1 Samuel 23:7-13

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.