NET
16 yet was rebuked for his own transgression (a dumb donkey, speaking with a human voice, restrained the prophet’s madness).
Darby
16 but had reproof of his own wickedness [the] dumb ass speaking with man's voice forbad the folly of the prophet.
KJV
16 But was rebuked for his iniquity: the dumb ass speaking with man's voice forbad the madness of the prophet.