Numbers 22:28, NLT

28Then the Lord gave the donkey the ability to speak. “What have I done to you that deserves your beating me three times?” it asked Balaam.