1 Chronicles 17-21 (The Daily Walk Bible).
“Satan rose up against Israel and caused David to take a census of the Israelites” (1 Chronicles 21:1).
“Again the anger of the LORD was aroused against Israel, and He moved David against them to say, ‘Go, number Israel and Judah'” (2 Samuel 24:1).
We see here how God’s sovereignty works. God is always, always in charge. He either allows things to happen, or decrees that they happen. That means that everyone is an agent of God one way or another. Satan may be the adversary, the accuser, the liar, and the evil one, but he can still only get away with what God allows him to get away with. Here, God allows Satan to influence David, but only because God has a purpose in mind.
So, what does this mean in our own lives? God does allow us to make bad choices. He has already decreed that bad choices will bring bad outcomes – we see that throughout Scripture! He also allows bad things to happen to us, but there is always a purpose and a meaning behind it. Scripture reminds us that pain brings growth and drives us closer to God. And that ultimately, “all things work together for good to those who love God, to those who are the called according to His purpose” (Romans 8:28).