Read Numbers 22:28 Using Other Translations
And the LORD opened the mouth of the ass, and she said unto Balaam, What have I done unto thee, that thou hast smitten me these three times?
Then the LORD opened the mouth of the donkey, and she said to Balaam, "What have I done to you, that you have struck me these three times?"
Then 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.