1 Samuel 27:2-7

27:2 So David left and crossed over to King Achish son of Maoch of Gath accompanied by his six hundred men. 27:3 David settled with Achish in Gath, along with his men and their families. David had with him his two wives, Ahinoam the Jezreelite and Abigail the Carmelite, Nabal’s widow. 27:4 When Saul learned that David had fled to Gath, he did not mount a new search for him.

27:5 David said to Achish, “If I have found favor with you, let me be given a place in one of the country towns so that I can live there. Why should your servant settle in the royal city with you?” 27:6 So Achish gave him Ziklag on that day. (For that reason Ziklag has belonged to the kings of Judah until this very day.) 27:7 The length of time that David lived in the Philistine countryside was a year and four months.