In Numbers 22 we see the story of Balak and Balaam which is rich with principles regarding hearing God's voice & obedience to his word.