In Islam, there's emphasis on God and the hereafter. The existence of a God who is not subject to our constrictions allows for this world to be situated within the existence of something greater. So when you're trying to treat an incident of this world in isolation, you're going to fail. But if I know God and if I learn about God, then I don't have to make sense of the plan, but I can tell you that I trust the planner. That's where peace is found.