Num Numbers, chapter Book of Numbers, chapter 22
Balaam’s donkey spoke to warn him
Balaam’s donkey saw the angel. The angel was standing in the road and was holding a sword in his hand, but Balaam did not see him.
Balaam’s donkey turned off the road into a field. So Balaam struck the donkey and forced it to go back onto the road.