Allah knows best what is best for us. It's just that because of our limited knowledge we interpret everything that happens as if there is no benefit. Yet that is what is best for Him. "Fighting has been made obligatory upon you ˹believers˺, though you dislike it. Perhaps you dislike something which is good for you and like something which is bad for you. Allah knows and you do not know." (QS. Al Baqarah: 216).