Numbers 22:23 NIV

23 When the donkey saw the angel of the LORD standing in the road with a drawn sword1 in his hand, she turned off the road into a field. Balaam beat her2 to get her back on the road.

References for Numbers 22:23