So Balaam rose in the morning, saddled his donkey, and went with the princes of Moab.
22 Then God’s anger was aroused because he went, and the Angel of the LORD took His stand in the way as an adversary against him. And he was riding on his donkey, and his two servants were with him.
23 Now the donkey saw the Angel of the LORD standing in the way with His drawn sword in His hand, and the donkey turned aside out of the way and went into the field. So Balaam struck the donkey to turn her back onto the road.
24 Then the Angel of the LORD stood in a narrow path between the vineyards, with a wall on this side and a wall on that side.
25 And when the donkey saw the Angel of the LORD, she pushed herself against the wall and crushed Balaam’s foot against the wall; so he struck her again.
26 Then the Angel of the LORD went further, and stood in a narrow place where there was no way to turn either to the right hand or to the left.
27 And when the donkey saw the Angel of the LORD, she lay down under Balaam; so Balaam’s anger was aroused, and he struck the donkey with his staff.
28 Then 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?�?
29 And Balaam said to the donkey, “Because you have abused me. I wish there were a sword in my hand, for now I would kill you!�?
30 So the donkey said to Balaam, “Am I not your donkey on which you have ridden, ever since I became yours, to this day? Was I ever disposed to do this to you?�?
And he said, “No.�?
31 Then the LORD opened Balaam’s eyes, and he saw the Angel of the LORD standing in the way with His drawn sword in His hand; and he bowed his head and fell flat on his face.
32 And the Angel of the LORD said to him, “Why have you struck your donkey these three times? Behold, I have come out to stand against you, because your way is perverse before Me.
33 The donkey saw Me and turned aside from Me these three times. If she had not turned aside from Me, surely I would also have killed you by now, and let her live.�?
34 And Balaam said to the Angel of the LORD, “I have sinned, for I did not know You stood in the way against me. Now therefore, if it displeases You, I will turn back.�?
Numbers 22, 21-35.
The story expresses God's anger against those who do not listen to Him.