Observe, here are no relentings, no sorrow of heart, no remorse of mind, that he had come out with an express intention to curse the people of GOD; but a fear of punishment, and therefore rather than that should take place he will go back. See another example in the case of Saul. 1 Samuel 15:30.
Related Commentaries of Numbers 22:34
Numbers 22:34
34 And Balaam said unto the angel of the LORD, I have sinned; for I knew not that thou stoodest in the way against me: now therefore, if it displease thee, I will get me back again.