So he took his men, divided them into three companies, and waited in ambush in the fields. When he saw the people coming out of the city, he rose up against them and attacked them.