וַיַּכּ֕וּ אֶת־שְׁאֵרִ֥ית הַפְּלֵטָ֖ה לַעֲמָלֵ֑ק וַיֵּ֣שְׁבוּ שָׁ֔ם עַ֖ד הַיּ֥וֹם הַזֶּֽה׃
Und sie schlugen den Überrest der Amalekiter, die entkommen waren, und wohnten dort bis auf diesen Tag.
Rashi
And they smote the remnant... that had escaped from being annihilated by David, for David destroyed every male in Edom.