39 At the end of three years, two of Shimei’s slaves ran away to Achish, son of Maacah, king of Gath. They told Shimei, saying, “Behold, your slaves are in Gath.”
1 Kings 2:39 Cross References - WEB
1 Samuel 21:10
10 David arose, and fled that day for fear of Saul, and went to Achish the king of Gath.
1 Samuel 27:2-3
2 David arose, and passed over, he and the six hundred men who were with him, to Achish the son of Maoch, king of Gath.
3 David lived with Achish at Gath, he and his men, every man with his household, even David with his two wives, Ahinoam the Jezreelitess, and Abigail the Carmelitess, Nabal’s wife.