Num Numbers, chapter Book of Numbers, chapter 22
And the donkey saw the Malach Hashem standing in the derech, and his cherev drawn in his hand; and the donkey turned off the derech, and went into the sadeh; and Balaam beat the donkey, to turn her back onto the derech.