Numbers 22:27-37

27 This time when the donkey saw the angel, it lay down under Balaam. In a fit of rage Balaam beat the animal again with his staff.
28 Then the LORD gave the donkey the ability to speak. “What have I done to you that deserves your beating me three times?” it asked Balaam.
29 “You have made me look like a fool!” Balaam shouted. “If I had a sword with me, I would kill you!”
30 “But I am the same donkey you have ridden all your life,” the donkey answered. “Have I ever done anything like this before?” “No,” Balaam admitted.
31 Then the LORD opened Balaam’s eyes, and he saw the angel of the LORD standing in the roadway with a drawn sword in his hand. Balaam bowed his head and fell face down on the ground before him.
32 “Why did you beat your donkey those three times?” the angel of the LORD demanded. “Look, I have come to block your way because you are stubbornly resisting me.
33 Three times the donkey saw me and shied away; otherwise, I would certainly have killed you by now and spared the donkey.”
34 Then Balaam confessed to the angel of the LORD, “I have sinned. I didn’t realize you were standing in the road to block my way. I will return home if you are against my going.”
35 But the angel of the LORD told Balaam, “Go with these men, but say only what I tell you to say.” So Balaam went on with Balak’s officials.
36 When King Balak heard that Balaam was on the way, he went out to meet him at a Moabite town on the Arnon River at the farthest border of his land.
37 “Didn’t I send you an urgent invitation? Why didn’t you come right away?” Balak asked Balaam. “Didn’t you believe me when I said I would reward you richly?”
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.