والله يعلم وأنتم لا تعلمون. وَاللَّهُ يَعْلَمُ وَأَنْتُمْ لَا تَعْلَمُونَ

and that you like a thing which is bad for you
Az-Zuhri said, "Jihad is required from every person, whether he actually joins the fighting or remains behind Hence, one might covet something, yet in reality it is not good or beneficial for him, such as refraining from joining the Jihad, for it might lead to the enemy taking over the land and the government

تفسير إِنَّ الَّذِينَ يُحِبُّونَ أَن تَشِيعَ الْفَاحِشَةُ..

This Ayah is general in meaning.

14
إسلام ويب
If he is not needed, then he remains behind
آیه 216 سوره بقره
Whoever remains behind is required to give support, if support is warranted; to provide aid, if aid is needed; and to march forth, if he is commanded to do so
آیه 19 سوره نور
But Allah knoweth, and ye know not
If you were required to march forth, then march forth , in Allah's cause , nor sincerely considered fighting, will die a death of Jahiliyyah pre-Islamic era of ignorance
Fighting is prescribed for you, and ye dislike it But it is possible that ye dislike a thing which is good for you, and that ye love a thing which is bad for you

آیه 216 سوره بقره

' Indeed, fighting is as the Ayah describes it, as it includes being killed, wounded, striving against the enemies and enduring the hardship of travel.

(وَاللهُ يَعلَمُ وَأنتُمْ لا تَعلَمُونَ)
and it may be that you dislike a thing which is good for you, meaning, fighting is followed by victory, dominance over the enemy, taking over their lands, money and offspring
والله يعلم وانتم لا تعلمون
Fighting is ordained for you Muslims , In this Ayah, Allah made it obligatory for the Muslims to fight in Jihad against the evil of the enemy who transgress against Islam
إسلام ويب
meaning, He has better knowledge than you of how things will turn out to be in the end, and of what benefits you in this earthly life and the Hereafter