Then the Amalekites and the Canaanites who lived there attacked and defeated them, and pursued them as far as Hormah.