2 Samuel 24:1 and 1 Chronicles 21:1
God did (2 Samuel 24:1), "Now again the anger of the Lord burned against Israel, and it incited David against them to say, "Go, number Israel and Judah."
Satan did (1 Chronicles 21:1), "Then Satan stood up against Israel and moved David to number Israel."
Is this a contradiction? Not at all. In 2 Samuel 24:1, God incited David to number Israel because God was angry with David. Ultimately, God wanted to teach David not to trust in his number of fighting men, but to trust in Him. So, He moved to let David count the fighting men of Israel. He used Satan to do it which is why in 1 Chronicles 21:1, it says Satan moved David to count the men. Both are true. God most probably either sent Satan or allowed Satan to incite David. But, how can God send Satan to do a job and yet God is not responsible for the sin? Simple.
God's authority extends even over Satan. God can use Satan to accomplish His ultimate will by simply giving permission to Satan to do that which Satan already desires to do. We see this in the crucifixion of Christ where evil men brought Jesus to death. Yet, at the same time, it was the predetermined plan of God that this be done.
"For truly in this city there were gathered together against your holy servant Jesus, whom you did anoint, both Herod and Pontius Pilate, along with the Gentiles and the peoples of Israel, 28 to do whatever your hand and your purpose predestined to occur," (Acts 4:27-28, NASB).
Furthermore, we see in Job that God allowed Satan to test Job and demonstrate Job's character (Job 1:8-13). We see in John 13:25-27 that Satan entered into Judas to betray Jesus, but it was the plan of God that Jesus be betrayed as Acts 4:27-28 above tells us.
God allows the evil one to work His evil yet that word is ultimately used for the glory of God. All this is done without God sinning and it demonstrates God's absolute sovereignty over all creation.