The Bible is all God's speech, as well as all mediated through human writers who wrote the individual books. It's a mistake to try to separate passages into a divine piece and a human piece. Rather, we should treat the Bible for what it is: divine and human all the way through. Of course God can quote human sinful speech, or describe human sinful actions, without implying that he approves them.