I agree, you did have a good intention I believe and God will actually bless you for having that even if mis-aimed. It’s asking the Lord for help with the mis-aim that’s the key. It’s the godless, self glorifying world in which good intentions always pave the road to hell. God corrects our errors without a single grudge even if the experience itself is a bummer. Being blessed with chastening sounds like a weird blessing but that’s what happens to people with hope. People with no hope are just tolerated here till they go to hell.
You are certainly correct in what you say. Have a blessed day and keep fighting the good fight!