When that destruction came, it was not by the hand of God, but
He nevertheless took the blame for it by inspiring the biblical author of Genesis 6 — 8 to record that He was sending the flood.
But often these passages in the Old Testament will state that the instructions were given by God, and if we read these texts in the light of Jesus, then we understand that although God was not telling them to do such things, He
nevertheless inspired them to write what they did so that He could
take the
blame for their sinful actions.