Balaam arose in the morning, and saddled his donkey and went with the leaders of Moab.
But God was angry because he was going, and The Angel of the Lord took His stand in the way as an adversary against him. Now he was riding on his donkey and his two servants were with him. When the donkey saw The Angel of the Lord standing in the way with His drawn sword in His hand, the donkey turned off from the way and went into the field; but Balaam struck the donkey to turn her back into the way. Then The Angel of the Lord stood in a narrow path of the vineyards, with a wall on this side and a wall on that side. When the donkey saw The Angel of the Lord, she pressed herself to the wall and pressed Balaam’s foot against the wall, so he struck her again. The Angel of the Lord went further, and stood in a narrow place where there was no way to turn to the right hand or the left. When the donkey saw The Angel of the Lord, she lay down under Balaam; so Balaam was angry and struck the donkey with his stick. And the Lord opened the mouth of the donkey, and she said to Balaam, “What have I done to you, that you have struck me these three times?” Then Balaam said to the donkey, “Because you have made a mockery of me! If there had been a sword in my hand, I would have killed you by now.” The donkey said to Balaam, “Am I not your donkey on which you have ridden all your life to this day? Have I ever been accustomed to do so to you?” And he said, “No.”
(Numbers 22:21-30)