low level in life if God has to use brute beasts to communicate with him.
29And 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.”
30And the ass said unto Balaam, “Am not I thine ass, upon which thou hast ridden ever since I was thine unto this day? Was I ever wont to do so unto thee?”
And he said, “Nay”.
31Then the LORD opened the eyes of Balaam, and he saw the angel of the LORD standing in the way, and his sword drawn in his hand: and he bowed down his head, and fell flat on his face.
32And the angel of the LORD said unto him, “Wherefore hast thou smitten thine ass these three times? behold, I went out to withstand thee, because thy way is perverse before me: 33And the ass saw me, and turned from me these three times: unless she had turned from me, surely now also I had slain thee, and saved her alive.”
34And 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.”
35And the angel of the LORD said unto Balaam, “Go with the men: but only the word that I shall speak unto thee, that thou shalt speak.”
So Balaam went with the princes of Balak.
The angel warned Balaam that he was rushing headlong and recklessly on a wrong path that could only lead to ruin, and then Balaam offered to return home.

His words, “I have sinned,” were not evidence of sincere repentance. Judas Iscariot said in Matt. 27:3-4 3Then Judas, which had betrayed him, when he saw that he was condemned, repented himself,** and brought again the thirty pieces of silver to the chief priests and elders, 4Saying, I have sinned in that I have betrayed the innocent blood.
But Judas didn’t turn to God for mercy. What good is it to say pretty words if your heart goes right on sinning?
Ps. 54:4-5 4Behold, God is mine helper: the Lord is with them that uphold my soul. 5He shall reward evil unto mine enemies: cut them off in thy truth. 6I will freely sacrifice unto thee: I will praise thy name, O LORD; for it is good.
Or the prodigal Son as hen truly confessed his sin.

In His permissive will, God allowed Balaam to continue on his journey, but He warned him to speak only the messages that God gave him.
For the first time, Balaam realized that there was more involved in this happening that he had experienced than cursing a nation and making some money. So as the Lord used the donkey to rebuke her master, God would use Balaam to reveal great truths about Israel in the future.

I’m sorry to say that Balaam’s encounter with the power of the Lord had no effect upon him, for he went back to his former ways of evil and sin.
In chapter 31:7-8 the Israelites fought against Midian by command of God and Moses. Numbers 31:7-8 says7And they warred against the Midianites, as the LORD commanded Moses; and they slew all the males. 8And