He gathered to himself the Ammonites and the Amalekites, and went and defeated Israel. And they took possession of the city of palms.