Samuel
1 Samuel 23:2BSB·traditional attribution

So David inquired of the LORD, “Should I go and attack these Philistines?” And the LORD said to David, “Go and attack the Philistines and save Keilah.”

Matthew Henry Presbyterian @wholebiblehenry

Now we find why the prophet Gad (by divine direction, no doubt) ordered David to go into the land of Judah, Sa1 22:5. It was that, since Saul neglected the public safety, he might take care of it, notwithstanding the ill treatment that was given him; for he must render good for evil, and therein be a type of him who not only ventured his...

Commenting on 1 Samuel 23:1-6

John Gill Reformed Baptist @doctorgill

Therefore David inquired of the Lord, saying, shall I go and smite these Philistines?.... For though David was well disposed to serve his country, and was desirous of freeing them from their enemies the Philistines, he might have some doubts in his mind whether it would be right for him to engage with them now; partly because he could not act under a commission from...

Jamieson-Fausset-Brown Reformed @jfbcommentary

David inquired of the Lord--most probably through Gad (Sa2 24:11; Ch1 21:9), who was present in David's camp (Sa1 22:5), probably by the recommendation of Samuel. To repel unprovoked assaults on unoffending people who were engaged in their harvest operations, was a humane and benevolent service.