5 And David said unto Achish, If now I have found favor in thine eyes, let them give me a place in one of the cities in the country, that I may dwell there: for why should thy servant dwell in the royal city with thee? 6 Then Achish gave him Ziklag that day: wherefore Ziklag pertaineth unto the kings of Judah unto this day. 7 And the number of the days that David dwelt in the country of the Philistines was a full year and four months.

8 And David and his men went up, and made a raid upon the Geshurites, and the Girzites, and the Amalekites; for those [nations] were the inhabitants of the land, who were of old, as thou goest to Shur, even unto the land of Egypt. 9 And David smote the land, and saved neither man nor woman alive, and took away the sheep, and the oxen, and the asses, and the camels, and the apparel; and he returned, and came to Achish. 10 And Achish said, Against whom have ye made a raid to-day? And David said, Against the South of Judah, and against the South of the Jerahmeelites, and against the South of the Kenites. 11 And David saved neither man nor woman alive, to bring them to Gath, saying, Lest they should tell of us, saying, So did David, and so hath been his manner all the while he hath dwelt in the country of the Philistines. 12 And Achish believed David, saying, He hath made his people Israel utterly to abhor him; therefore he shall be my servant for ever.

Matthew Henry's Commentary on 1 Samuel 27:5-12

Commentary on 1 Samuel 27:1-7

(Read 1 Samuel 27:1-7)

Unbelief is a sin that easily besets even good men, when without are fightings, and within are fears; and it is a hard matter to get over them. Lord, increase our faith! We may blush to think that the word of a Philistine should go further than the word of an Israelite, and that the city of Gath should be a place of refuge for a good man, when the cities of Israel refuse him a safe abode. David gained a comfortable settlement, not only at a distance from Gath, but bordering upon Israel, where he might keep up a correspondence with his own countrymen.

Commentary on 1 Samuel 27:8-12

(Read 1 Samuel 27:8-12)

While David was in the land of the Philistines, he attacked some remains of the devoted nations. The people whom he cut off were long before doomed to destruction. It is often wisdom to shun public notice, but we must in no situation be idle. We must always try to do somewhat in the cause of God. This expedition David hid from Achish. But an equivocation which serves the purpose of a lie, is as like to it as a hypocrite is to a profane person, it is only better in appearance, therefore more dangerous. Yet, though believers often manifest imperfections, they can never be prevailed upon to renounce the service of God, and to unite interests with his enemies, or finally to become the servants of sin and Satan. But what a train of evils follow from unbelief! When we forget the Lord's past mercies, and his gracious assurances, we shall be overwhelmed with desponding fears, and probably be led to adopt some dishonourable method to get rid of our troubles. Nothing can so effectually establish us in holy tempers and practices, and preserve us from perplexities, as firm, unshaken dependence upon the promises of God in Christ Jesus.