Moab said to the elders of Midian, "Now this horde will lick up all that is around us, as the ox licks up the grass of the field." And Balak the son of Zippor was king of Moab at that time.
So he sent messengers to Balaam the son of Beor, at Pethor, which is near the River, in the land of the sons of his people, to call him, saying, "Behold, a people came out of Egypt; behold, they cover the surface of the land, and they are living opposite me.
"Now, therefore, please come, curse this people for me since they are too mighty for me; perhaps I may be able to defeat them and drive them out of the land. For I know that he whom you bless is blessed, and he whom you curse is cursed."
So the elders of Moab and the elders of Midian departed with the fees for divination in their hand; and they came to Balaam and repeated Balak's words to him.
'Behold, there is a people who came out of Egypt and they cover the surface of the land; now come, curse them for me; perhaps I may be able to fight against them and drive them out.'"
Balaam replied to the servants of Balak, "Though Balak were to give me his house full of silver and gold, I could not do anything, either small or great, contrary to the command of the LORD my God.
God came to Balaam at night and said to him, "If the men have come to call you, rise up and go with them; but only the word which I speak to you shall you do."
But God was angry because he was going, and the angel of the LORD took his stand in the way as an adversary against him. Now he was riding on his donkey and his two servants were with him.
When the donkey saw the angel of the LORD standing in the way with his drawn sword in his hand, the donkey turned off from the way and went into the field; but Balaam struck the donkey to turn her back into the way.
The donkey said to Balaam, "Am I not your donkey on which you have ridden all your life to this day? Have I ever been accustomed to do so to you?" And he said, "No."
Then the LORD opened the eyes of Balaam, and he saw the angel of the LORD standing in the way with his drawn sword in his hand; and he bowed all the way to the ground.
The angel of the LORD said to him, "Why have you struck your donkey these three times? Behold, I have come out as an adversary, because your way was contrary to me.
"But the donkey saw me and turned aside from me these three times. If she had not turned aside from me, I would surely have killed you just now, and let her live."
Balaam said to the angel of the LORD, "I have sinned, for I did not know that you were standing in the way against me. Now then, if it is displeasing to you, I will turn back."
But the angel of the LORD said to Balaam, "Go with the men, but you shall speak only the word which I tell you." So Balaam went along with the leaders of Balak.