"Why is God doing this to me?"
My friend's husband left her for another woman, and she was understandably hurt and confused.
But she was asking the wrong question. I reminded her it wasn't God. It was her husband who was hurting her.
Unfortunately, I sometimes do the same thing when the sins of others hurt me because I know God could spare me the pain.
But God wants to save men, not simply spare them pain. He allows sin, decay and death (Romans 8:23-25) but gives overflowing love and comfort when we're hurt (2 Corinthians 1:3-7).
That's why Jesus said, "In this world you will have trouble. But take heart! I have overcome the world" (John 16:33).