When the donkey saw the angel standing there holding a sword, it left the road and turned into the fields. Balaam beat the donkey and brought it back on to the road.