And David and his men went up, and invaded the Geshurites, and the Gezrites, and the Amalekites: for those nations were of old the inhabitants of the land, as thou goest to Shur, even unto the land of Egypt.
David and his men went up to make war on and raid the Geshurites and the Gezrites and the Amalekites, nations that of old were the inhabitants of the land in the region stretching toward Shur even as far as Egypt. This took place while he was dwelling under Philistine protection. To prevent word of the raids from being carried to Gath, he left neither man nor woman alive. He then deceived Achish about which people he had attacked. That deception led Achish to conclude that David had made himself utterly hated by his own people Israel and had turned against them, and in that way it strengthened the Philistines. Such a course was a poor return for the favor of protection the Philistines had extended to him. Instead of defending God's people and fulfilling his calling to protect them, his conduct failed to do so.
The verse belongs to the time when David fled from Saul to Gath and lived in Philistine country under Philistine protection, effectively exiled from Israel under an agreement with the Philistines to avoid Saul. In its wider setting the chapter contrasts Saul's rashness, weakness, failure, rejection, and ever-downward course with David's choosing and checkered but ever-rising career. The account throws light on the habits and customs of the people, the influence of surrounding nations upon them, and God's providence shaping and molding national events while still remembering the promised Seed. The verse identifies the Geshurites, Gezrites, and Amalekites as peoples who of old had long inhabited the land stretching from Shur toward Egypt. It records part of David's warfare in which he and his men went up and raided those enemies of Israel. Beyond that bare record, no explanation is given of the named peoples or the details of the raid. To hide the raids, David left no men or women alive to carry news to Gath and then misled Achish about whom he had attacked, leading Achish to believe David had alienated himself from Israel. That deception repaid the Philistines' favor poorly, strengthened the Philistines, and failed to defend God's people or fulfill David's calling to protect them. The Amalekites' presence here shows they remained as a remnant after the prediction that Amalek would be utterly blotted out; David defeated them in his campaigns, but their temporary survival did not mean their name would endure permanently. The verse was later invoked as a precedent for rooting out the Moriscos, treating David's attack on these peoples as a model for persecuting religious unbelievers.