Numbers 24:1

New International Version Bible (NIV)
Now when Balaam saw that it pleased the Lord to bless Israel, he did not resort to divination as at other times, but turned his face toward the wilderness.

Read Numbers 24:1 in other translations