Job 2:4-7, 1 Sam 16:14, 1 Kings 22:23, 2 Sam 24:1, 1 Chr 21:1, 2 Cor 12:7

In the Old Testament, God allowed Satan to touch Job's possessions, but he did not allow him to touch Job's life. (Job 1:12, Job 2:4-7)

Job 1:12 And the Lord said unto Satan, Behold, all that he hath is in thy power; only upon himself put not forth thine hand. So Satan went forth from the presence of the Lord.

Job 2:4 And Satan answered the Lord, and said, Skin for skin, yea, all that a man hath will he give for his life. 5 But put forth thine hand now, and touch his bone and his flesh, and he will curse thee to thy face. 6 And the Lord said unto Satan, Behold, he is in thine hand; but save his life. 7 So went Satan forth from the presence of the Lord, and smote Job with sore boils from the sole of his foot unto his crown.

In the Old Testament, the evil spirit that troubled Saul was also under God's control. (1 Samuel 16:14)

1 Samuel 16:14 But the Spirit of the Lord departed from Saul, and an evil spirit from the Lord troubled him.

In the Old Testament, God put false spirits in the mouths of false prophets. (1 Kings 22:23)

1 Kings 22:23 Now therefore, behold, the Lord hath put a lying spirit in the mouth of all these thy prophets, and the Lord hath spoken evil concerning thee.

In the Old Testament, God used Satan to stir up David. (2 Samuel 24:1, 1 Chronicles 21:1)

2 Samuel 24:1 And again the anger of the Lord was kindled against Israel, and he moved David against them to say, Go, number Israel and Judah.

1 Chronicles 21:1 And Satan stood up against Israel, and provoked David to number Israel.

God also allows Satan to attack us to awaken us. (2 Corinthians 12:7)

2 Corinthians 12:7 And lest I should be exalted above measure through the abundance of the revelations, there was given to me a thorn in the flesh, the messenger of Satan to buffet me, lest I should be exalted above measure.