Numbers 22:9 New International Version (NIV)
9 God came to Balaam and asked, “Who are these men with you?”
Why would God speak through a sorcerer like Balaam? God wanted to give a message to the Moabites, and they had already chosen to employ Balaam. He was available for God to use. Balaam took his role seriously, but he had a mixed heart. He had some knowing of God, but it was not enough to turn from his magic practice. Later in the Bible, he turned completely to God, but he still could not resist the tempting pull of money and idolatry. Look at his life as a lesson, and turn your face completely to God. With God, you can resist temptations and run from sin.