God is not the author of confusion 1 Corinthians 14:33
Trivia: What did Moses his soldiers to do to the Midianites in Numbers 31?
And the anger of the Lord was kindled against Israel, and he moved David against them to say, Go number Israel and Judah. 2 Samuel 24:1
And Satan stood up against Israel and provoked David to number Israel. 1 Chronicles 21:1