2 Peter 2:15-16

15 forsaking the right way, they have gone astray, having followed the way of Balaam, the son of Beor, who loved the wages of unrighteousness; 16 but he received a rebuke for his own transgression, for a mute donkey, speaking with a voice of a man, restrained the madness of the prophet.