The angel of the Lord stood in the road to oppose him. Balaam was riding on his donkey, and his two servants were with him. 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.
Then the angel of the Lord stood in a narrow path between two vineyards, with walls on both sides. When the donkey saw the angel of the Lord, she pressed close to the wall, crushing Balaam's foot against it. So he beat her again.
Then the angel of the Lord moved on ahead and stood in a narrow place where there was no room to turn, either to the right or to the left. When the donkey saw the angel of the Lord, she lay down under Balaam and he was angry and beat her with his staff. The the Lord opened the donkey's mouth, and she said to Balaam, "What have i done to you to make you beat me these three times?"
Then the Lord opened Balaam's eyes, and he saw the angel of the Lord standing in the road with his sword drawn. So he bowed low and fell facedown.
Numbers 22:22-31