Let's look at the scriptures regarding this, brothers and sisters, so that we are not of our own opinion on the matter:
1 Chronicles 21:1-3 - Now Satan stood up against Israel, and moved David to number Israel. So David said to Joab and to the leaders of the people, “Go, number Israel from Beersheba to Dan, and bring the number of them to me that I may know it.” And Joab answered, “May the Lord make His people a hundred times more than they are. But, my lord the king, are they not all my lord’s servants? Why then does my lord require this thing? Why should he be a cause of guilt in Israel?”
2 Samuel 24:1-3 - Again the anger of the Lord was aroused against Israel, and He moved David against them to say, “Go, number Israel and Judah.” So the king said to Joab the commander of the army who was with him, “Now go throughout all the tribes of Israel, from Dan to Beersheba, and count the people, that I may know the number of the people.” And Joab said to the king, “Now may the Lord your God add to the people a hundred times more than there are, and may the eyes of my lord the king see it. But why does my lord the king desire this thing?”
Note: This has an interesting dynamic. The Lord was angry with Israel and He caused David to number the people in 2 Samuel 24, but 1 Chronicles 21 makes it clear that the agent used to incite David in this manner was Satan. Of course, God does not tempt anyone, because David already had this weakness within.
Job 2:1-10 - Again there was a day when the sons of God came to present themselves before the Lord, and Satan came also among them to present himself before the Lord. And the Lord said to Satan, “From where do you come?” Satan answered the Lord and said, “From going to and fro on the earth, and from walking back and forth on it.” Then the Lord said to Satan, “Have you considered My servant Job, that there is none like him on the earth, a blameless and upright man, one who fears God and shuns evil? And still he holds fast to his integrity, although you incited Me against him, to destroy him without cause.” So Satan answered the Lord and said, “Skin for skin! Yes, all that a man has he will give for his life. But stretch out Your hand now, and touch his bone and his flesh, and he will surely curse You to Your face!” And the Lord said to Satan, “Behold, he is in your hand, but spare his life.” So Satan went out from the presence of the Lord, and struck Job with painful boils from the sole of his foot to the crown of his head. 8 And he took for himself a potsherd with which to scrape himself while he sat in the midst of the ashes. Then his wife said to him, “Do you still hold fast to your integrity? Curse God and die!" But he said to her, “You speak as one of the foolish women speaks. Shall we indeed accept good from God, and shall we not accept adversity?” In all this Job did not sin with his lips.
Acts 5:1-4 - But a certain man named Ananias, with Sapphira his wife, sold a possession. And he kept back part of the proceeds, his wife also being aware of it, and brought a certain part and laid it at the apostles’ feet. But Peter said, “Ananias, why has Satan filled your heart to lie to the Holy Spirit and keep back part of the price of the land for yourself? While it remained, was it not your own? And after it was sold, was it not in your own control? Why have you conceived this thing in your heart? You have not lied to men but to God.”