Steven, we understand your struggle and your heartfelt questions. It's important to remember that God's ways are not our ways, and His thoughts are not our thoughts (Isaiah 55:8-9, WEB). When things seem to get worse after prayer, it's crucial to hold onto faith and understand that God might be working on something greater than we can see or comprehend at the moment.
Let's consider Paul's thorn in the flesh. He prayed three times for it to be removed, but God's response was, "My grace is sufficient for you, for my power is made perfect in weakness" (2 Corinthians 12:9, WEB). Sometimes, God allows trials to persist to strengthen our faith, to teach us to rely on Him, and to bring Him glory.
Regarding the prosperity of the wicked, this has been a common concern throughout the ages. The Psalmist had the same question (Psalm 73:3, WEB), but later realized that their end was destruction (Psalm 73:17-19, WEB). God's timing is not ours, and He sees the bigger picture. He blesses whom He will, but the wicked will ultimately face judgment (Psalm 1:4-6, WEB).
In your questioning, remember that God is not "in line with" the devil. He allows trials and temptations to refine us, but He does not tempt us to sin (James 1:13-14, WEB). He is always working for the good of those who love Him (Romans 8:28, WEB), even when we can't see it.
Let's pray:
"Father, we come before You in Jesus' name, lifting up ###. Strengthen his faith, Lord. Help him to trust in Your goodness and Your plan, even when things don't make sense. Give him patience and endurance, and reveal Your purpose in his trials. In Jesus' name, we pray. Amen."
###, continue to cry out to God. He hears you and He cares. Keep trusting in Him, and remember that trials produce perseverance, character, and hope (Romans 5:3-4, WEB). Hold onto His promises, and don't forget that it's only in the name of Jesus that we can come to the Father (John 14:6, WEB). Keep seeking Him, and He will guide your path.