# he obtained a rebuke
"God rebuked Balaam"
# a mute donkey speaking in a human voice
A donkey, which is naturally unable to speak, spoke with a voice like a human.
# stopped the prophet's insanity
God used a donkey to stop the prophet's foolish action.