Early the next morning Joshua got up early and gathered the people and went up to attack Ai, accompanied by the elders of Israel.