“God is not a God of confusion but of peace.”
“The Lord your God will give them over to you and throw them into great confusion.”
If you pull up the word confusion [mᵊhûmâ, also translated “panic”] in an online concordance, you will quickly discover all but one of the twelve Old Testament references attribute confusion to God. The example I’ve cited above, in which Moses promises the children of Israel victory over their enemies provided they remain faithful to YHWH, is only one of many.