When Balaam saw that the Lord wanted to bless Israel, he chose not to use divination as he had previously. Instead he turned towards the desert,
Read & study FBV 24:1And when Balaam saw that it pleased Jehovah to bless Israel, he went not, as at the other times, to meet with enchantments, but he set his face toward the wilderness.
Read & study ASV 24:1