Allah emphasizes His knowledge of the different realms, as He tells us, “That is the Knower of the seen and unseen—the Almighty, Most Merciful.” (32:6) For this reason, we need to take a step back when we assume that we know all there is to know and make a judgment based on that.
This is especially so when things don’t go our way. Allah tells us, “Perhaps you dislike something which is good for you and like something which is bad for you. Allah knows and you do not know.
This does not mean that we cannot judge things at all. Most of the time, we need to act based on what we see; this is why we have faculties, and why we have been told about right and wrong. But we should not assume that we know all there is to know.