Num Numbers, chapter Book of Numbers, chapter 22
And God's anger was kindled because he went; and the angel of the LORD placed himself in the way for an adversary against him. — Now he was riding upon his ass, and his two servants were with him. — And the ass saw the angel of the LORD standing in the way, with 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.