David says in his heart that one day he will perish at the hand of Saul, and that the best thing is to escape to the land of the Philistines, so that Saul will give up searching for him throughout the territory of Israel. He sets out with his six hundred men, each with his household, and goes to Achish son of Maoch, king of Gath. David settles with his two wives, Ahinoam of Jezreel and Abigail, the widow of Nabal. When Saul is told that David has fled to Gath, he no longer searches for him.
David asks Achish for a place in one of the country towns, so as not to live in the royal city. Achish gives him Ziklag, which has belonged to the kings of Judah ever since. David lives in Philistine territory a year and four months.
From Ziklag David and his men raid the Geshurites, the Girzites and the Amalekites, peoples who had long lived toward Shur and the land of Egypt. David leaves neither man nor woman alive, so that no one can report what he is doing, and brings back sheep, cattle, donkeys, camels and clothing. When he returns to Achish, Achish asks against whom they raided today, and David answers that it was against the Negeb of Judah, or of the Jerahmeelites, or of the Kenites.
Achish trusts David and thinks that he has made himself odious to his people Israel, so that he will be his servant forever.