2 So David arose and went over, he and the six hundred men who were with him, to Achish the son of Maoch, king of Gath. 3 And David lived with Achish at Gath, he and his men, every man with his household, and David with his two wives, Ahinoam of Jezreel, and Abigail of Carmel, Nabal's widow. 4 And when it was told Saul that David had fled to Gath, he no longer sought him.
Matthew Henry's Commentary on 1 Samuel 27:2-4
Commentary on 1 Samuel 27:1-7
(Read 1 Samuel 27:1-7)
Unbelief is a sin that easily besets even good men, when without are fightings, and within are fears; and it is a hard matter to get over them. Lord, increase our faith! We may blush to think that the word of a Philistine should go further than the word of an Israelite, and that the city of Gath should be a place of refuge for a good man, when the cities of Israel refuse him a safe abode. David gained a comfortable settlement, not only at a distance from Gath, but bordering upon Israel, where he might keep up a correspondence with his own countrymen.