Numbers 22:23

The donkey, discerning that the Angel was standing in the way with a drawn sword, turned herself from the road and went through a field. And when Balaam beat her and intended to return her to the path

Other versions

King James Version

And the ass saw the angel of the LORD standing in the way, and his sword drawn in his hand: and the ass turned aside out of the way, and went into the field: and Balaam smote the ass, to turn her into the way.

English Standard Version

And the donkey saw the angel of the LORD standing in the road, with a drawn sword in his hand. And the donkey turned aside out of the road and went into the field. And Balaam struck the donkey, to turn her into the road.

New International Version

When the donkey saw the angel of the LORD standing in the road with a drawn sword in his hand, she turned off the road into a field. Balaam beat her to get her back on the road.