20 Then Balaam looked toward Amalek and recited this parable,
Amalek was the first nation, but he will perish forever.
21 Then he looked on the Kenites and recited this parable,
Your dwelling place is strong and you nest in a rock.
22 But the Kenites will be wasted until Asshur carries them captive.
25 Balaam got up and returned home and Balak went on his way.
A few more words about this episode
A star will come out of Jacob (24:17)
This verse is called the "star prophecy" and is sometimes claimed to be a prophecy of the star of Bethlehem (Matthew 2:2).
But this seems unlikely, since the verse refers to Moab, and the kingdom of Moab didn't exist in New Testament times, and Jesus didn't smite Moab or kill the children of Sheth.
("Sheth" here refers to Seth -- the son of Adam, from whom Noah and, according to the Bible, all other humans descended. So if this is a prophecy about Jesus, then it prophesies that Jesus will someday kill everyone on earth.)