Job 34:12 Yea, surely God will not do wickedly, Neither will the Almighty pervert judgment.
Elihu makes it clear that God will not do wrong. Certainly the Bible teaches that. God is not the author of sin. He does not tempt us to sin. He doesn’t cause us to sin. He doesn’t program us to sin.
He allows us to choose to obey Him or rebel against Him. God doesn’t do wrong, period!