David said to Achish, If now I have found favor in your eyes, let them give me a place in one of the cities in the country, that I may dwell there: for why should your servant dwell in the royal city with you?
Actually he was wiping out a lot of these little Philistine villages, and Canaanite villages and making out to king Achish that he was fighting against Judah.