then led them to a valley near one of the towns in Amalek, where they got ready to make a surprise attack.