Numbers 22:29

And Balaam said unto the ass, Because thou hast mocked me: I would there were a sword in mine hand, for now would I kill thee.

Cross-reference

Proverbs 12:10 contrasts the righteous who care for animals with Balaam's immediate threat to kill his donkey here.

Proverbs 12:16 warns that fools show annoyance at once, which Balaam exemplifies by his furious response to the donkey.