Numbers 22:23-33

23 And when the ass saw the angel of God standing opposite in the way, and his sword drawn in his hand, then the ass turned aside out of the way, and went into the field; and smote the ass with his staff to direct her in the way.
24 And the angel of the Lord stood in the avenues of the vines, a fence on this side and a fence on that.
25 And when the ass saw the angel of God, she thrust herself against the wall, and crushed Balaam's foot against the wall, and he smote her again.
26 And the angel of the Lord went farther, and came and stood in a narrow place where it was impossible to turn to the right or the left.
27 And when the ass saw the angel of God, she lay down under Balaam; and Balaam was angry, and struck the ass with his staff.
28 And God opened the mouth of the ass, and she says to Balaam, What have I done to thee, that thou hast smitten me this third time?
29 And Balaam said to the ass, Because thou hast mocked me; and if I had a sword in my hand, I would now have killed thee.
30 And the ass says to Balaam, not I thine ass on which thou hast ridden since thy youth till this day? did I ever do thus to thee, utterly disregarding ? and he said, No.
31 And God opened the eyes of Balaam, and he sees the angel of the Lord withstanding in the way, and his sword drawn in his hand, and he stooped down and worshipped on his face.
32 And the angel of God said to him, Why hast thou smitten thine ass this third time? and, behold, I came out to withstand thee, for thy way was not seemly before me; and when the ass saw me, she turned away from me this third time.
33 And if she had not turned out of the way, surely now, I should have slain thee, and should have saved her alive.

Footnotes 1

The Brenton translation of the Septuagint is in the public domain.