Then they turned back and came to En-Mishpat (that is, Kadesh). And they defeated the whole territory of the Amalekites, and also the Amorites who were living in Hazazon-Tamar.