What to make of a negative experience after praying to Jesus?

Twice that I can recall, I had horrendous things happen after praying to Jesus. Now, I believe God is just, but I don't know what to make of these incidences. It's not like God explained why the situations happened.

I have tried to be Christian because i thought Christianity was the right path. But the more I think about those situations, I don't think I should hang on anymore.

Can anyone relate to this?

Update: Thanks so much for all the replies. I think on reflection what's been helping me since I posted is, after chatting with a couple of Redditors, to think of God and Jesus meeting people where they were at and then taking things from there. He did say 'repent' and all I can think of is that I still need to take practical steps forwardto do that, rather than just mental assent to make progress on some issues and move forward..

As for coming to terms with some of the bad things that happened, I'm still wrestling with that.