1 Samuel 27:6-7
6-7So Achish assigned him Ziklag. (This is how Ziklag got to be what it is now, a city of the kings of Judah.) David lived in Philistine country a year and four months.
8-9From time to time David and his men raided the Geshurites, the Girzites, and the Amalekites—these people were longtime inhabitants of the land stretching toward Shur and on to Egypt. When David raided an area he left no one alive, neither man nor woman, but took everything else: sheep, cattle, donkeys, camels, clothing—the works. Then he'd return to Achish.