2 he inquired of the LORD, saying, “Shall I go and attack these Philistines?” The LORD answered him, “Go, attack the Philistines and save Keilah.”

Read 1 Samuel 23:2 Using Other Translations

Therefore David enquired of the LORD, saying, Shall I go and smite these Philistines? And the LORD said unto David, Go, and smite the Philistines, and save Keilah.
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 Keilah."
David asked the LORD, “Should I go and attack them?” “Yes, go and save Keilah,” the LORD told him.