2:216
ﱁIs prescribedﱂupon youﱃ[the] fightingﱄwhile itﱅ(is) hatefulﱆﱇto youﱈBut perhapsﱉ[that]ﱊyou dislikeﱋa thingﱌand itﱍ(is) goodﱎﱏfor youﱐand perhapsﱑ[that]ﱒyou loveﱓa thingﱔand itﱕ(is) badﱖﱗfor youﱘAnd Allahﱙknowsﱚwhile youﱛ(do) notﱜknowﱝ(216)
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.