1 Samuel 27:1-7
New International Version
David Among the Philistines
27 But David thought to himself, “One of these days I will be destroyed by the hand of Saul. The best thing I can do is to escape to the land of the Philistines. Then Saul will give up searching for me anywhere in Israel, and I will slip out of his hand.”
2 So David and the six hundred men(A) with him left and went(B) over to Achish(C) son of Maok king of Gath. 3 David and his men settled in Gath with Achish. Each man had his family with him, and David had his two wives:(D) Ahinoam of Jezreel and Abigail of Carmel, the widow of Nabal. 4 When Saul was told that David had fled to Gath, he no longer searched for him.
5 Then David said to Achish, “If I have found favor in your eyes, let a place be assigned to me in one of the country towns, that I may live there. Why should your servant live in the royal city with you?”