This is a fundamental theological problem:
God is all Powerful
God is all Knowing
God is all Good
Suffering exists
All 4 options cannot coexist, we know that suffering is real, no one can prove any of the other three and yet religions rely on them being "rules". I can't really remember all the relevant arguments but it was definitely part of GCSE RS about 15 years ago!