The citieswhichthe Philistineshad takenfrom Israelwere restoredto Israel,from Ekroneven to Gath;and Israeldeliveredtheir territoryfrom the handof the Philistines.So there was peacebetweenIsraeland the Amorites.
Now afterthisit cameabout that Daviddefeatedthe Philistinesand subduedthem and tookGathand its townsfrom the handof the Philistines.
They did not destroythe peoples,As the LORDcommandedthem,
"Amalekis livingin the landof the Negevand the Hittitesand the Jebusitesand the Amoritesare livingin the hillcountry,and the Canaanitesare livingby the seaand by the sideof the Jordan."
"You shall consumeallthe peopleswhomthe LORDyour Godwill deliverto you; your eyeshall not pitythem, norshall you servetheir gods,for that [would be] a snareto you.
and when the LORDyour Goddeliversthem beforeyou and you defeatthem, then you shall utterlydestroythem. You shall makenocovenantwith them and shownofavorto them.
So the fivekingsof the Amorites,the kingof Jerusalem,the kingof Hebron,the kingof Jarmuth,the kingof Lachish,[and] the kingof Eglon,gatheredtogether and wentup, they with alltheir armies,and campedby Gibeonand foughtagainstit.
The borderproceededto the sideof Ekronnorthward.Then the bordercurvedto Shikkeronand continuedto MountBaalahand proceededto Jabneel,and the borderendedat the sea.
Now Siserafledaway on footto the tentof Jaelthe wifeof Heberthe Kenite,for [there was] peacebetweenJabinthe kingof Hazorand the houseof Heberthe Kenite.