Num Numbers, chapter Book of Numbers, chapter 24
And when Balaam saw that it was tov in the eyes of Hashem to bless Yisroel, he went not, as at other times, to use nechashim (sorceries, divination, looking for omens) but he set his face toward hamidbar. Num 23:3