Balaam now realized that Yahweh wanted to bless the Israeli people, not curse them. So he did not use magic/divination like a shaman would do to find out what Yahweh wanted, as he often did. Instead, he turned toward the desert.
Read & study T4T 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