Numbers 22:29-32
English Standard Version
Chapter 22
29And Balaam said to the donkey, "Because you have made a fool of me. I wish I had a sword in my hand, for then I would kill you." 30And the donkey said to Balaam, "Am I not your donkey, on which you have ridden all your life long to this day? Is it my habit to treat you this way?" And he said, "No."
31Then the Lord opened the eyes of Balaam, and he saw the angel of the Lord standing in the way, with his drawn sword in his hand. And he bowed down and fell on his face.
32And the angel of the Lord said to him, "Why have you struck your donkey these three times? Behold, I have come out to oppose you because your way is perverse before me.