Numbers 22:20

The Message Bible (MSG)
God came to Balaam that night and said, “Since these men have come all this way to see you, go ahead and go with them. But make sure you do absolutely nothing other than what I tell you.”

21-23 Balaam got up in the morning, saddled his donkey, and went off with the noblemen from Moab. As he was going, though, God’s anger flared. The angel of God stood in the road to block his way. Balaam was riding his donkey, accompanied by his two servants. When the donkey saw the angel blocking the road and brandishing a sword, she veered off the road into the ditch. Balaam beat the donkey and got her back on the road.

24-25 But as they were going through a vineyard, with a fence on either side, the donkey again saw God’s angel blocking the way and veered into the fence, crushing Balaam’s foot against the fence. Balaam hit her again.

26-27 God’s angel blocked the way yet again—a very narrow passage this time; there was no getting through on the right or left. Seeing the angel, Balaam’s donkey sat down under him. Balaam lost his temper; he beat the donkey with his stick.

Read Numbers 22:20 in other translations