Balaam professed that the Lord was his God (Num. 22:18). Yet, both Testaments record that he was a wicked man who harmed God’s people greatly (Num. 31:16; Rev. 2:14).
God gave profound authentic revelation about the Messiah through him (Num. 24:15-19). God has even inscripturated that revelation for all time in the Bible.
Theologians have rightly used the authentic revelation given by God through Balaam in spite of his wickedness. We can and should learn doctrine and edify one another through the recorded oracles of Balaam that God has given to us in Scripture.
Similarly, God’s people have used songs or musical pieces that accurately convey truth about God even though they have been written by otherwise perverse people.
Given that the former practice (using divine revelation given through Balaam) is indisputably proper, are there any valid reasons to hold that it is improper for us to use good music that has been produced by ungodly sources? Should Christians use good music from ungodly sources?