Balak, son of Zippor and king of Moab, sees all that Israel did to the Amorites and is terrified of this numerous people. Moab and the elders of Midian join forces, and Balak sends messengers to Balaam, son of Beor, who lived at Pethor by the river, offering payment to curse Israel. Balaam hosts them, and that night God tells him not to go with them and not to curse the people, because they are blessed. Balaam refuses the invitation.
Balak insists with princes who are more numerous and more honorable, and offers more. Balaam answers that even for a house full of silver and gold he could not go beyond the word of the Lord, but he asks the messengers to wait another night. That night God permits him to go, on condition that he do only what God tells him. Balaam rises, saddles his donkey and leaves with the princes of Moab, though God's anger is kindled because he goes.
The angel of the Lord stands in the road with a drawn sword, and only the donkey sees him. She turns into a field, presses against a wall and crushes Balaam's foot, and finally lies down in a narrow place. Balaam strikes her all three times. The Lord opens the donkey's mouth, and she protests the mistreatment; then he opens Balaam's eyes, and he sees the angel and falls on his face. The angel tells him that the donkey saved his life and that he must speak only what he is told. Balaam admits his sin, offers to turn back, and finally meets Balak, who takes him to Bamoth-baal, from where he sees the edge of the camp.