"Are they not all ministering spirits, sent forth to minister for them who shall be heirs of salvation?" (Hebrews 1:14 KJV)
"What can we bring to the LORD? What kind of offerings should we give him? Should we bow before God with offerings of yearly calves? Should we offer him thousands of rams and ten thousand rivers of olive oil? Should we sacrifice our firstborn children to pay for our sins? No, O people, the LORD has told you what is good, and this is what he requires of you: to do what is right, to love mercy, and to walk humbly with your God." (Micah 6:6-8 NLT)
Before you try and think how this might apply, try thinking about Paul and the thorn in his side, as it was, the devil was involved in that, as God allowed it; and it was to keep Paul humble. I really don't think the devil does certain things for our good, but what he has made for a way to harm us, God will turn it and make it something meant for good!
We can see this happening in so many ways, much as they did for Jesus, as they for Paul, and as He does for your and I. God allows certain things, which seriously seem devastating, in the moment; but as we do what is right, loving mercy, and walking humbly with God, He will poor out His grace and glorify us as His special children!
Believe in that, because it will always happen...
"What do you think the Scriptures mean when they say that the spirit God has placed within us is filled with envy? But he gives us even more grace to stand against such evil desires. As the Scriptures say, "God opposes the proud but favors the humble." So humble yourselves before God. Resist the devil, and he will flee from you. Come close to God, and God will come close to you. Wash your hands, you sinners; purify your hearts, for your loyalty is divided between God and the word. Let there be tears for what you have done. Let there be sorrow and deep grief. Let there be sadness instead of laughter, and gloom instead of joy. Humble yourselves before the Lord, and he will lift you up in honor." (James 4:5-10 NLT)