SynopsisDavid hears that a place called Keilah—which I assume, based on the context, is an Israelite town—is under attack from the Philistines, so he inquires of the LORD, who tells him to attack the Philistines and save Keilah. (We’re told in verse 6 that Abiathar brought the ephod with him, when he escaped to David’s camp, so I guess that’s how they’re inquiring of the LORD.) David tells this to his men, but they tell him that if they’re afraid in Judah, how much more afraid would they be to go to Keilah, and fight against the Philistines.
This seems to give David second thoughts, because he inquires of the LORD again, but he gets the same answer, so they go. They fight the Philistines, inflict heavy losses on them, and carry off their livestock.