كُتِبَ عَلَيْكُمُ ٱلْقِتَالُ وَهُوَ كُرْهٌ لَّكُمْ ۖ وَعَسَىٰٓ أَن تَكْرَهُوا۟ شَيْـًٔا وَهُوَ خَيْرٌ لَّكُمْ ۖ وَعَسَىٰٓ أَن تُحِبُّوا۟ شَيْـًٔا وَهُوَ شَرٌّ لَّكُمْ ۗ وَٱللَّهُ يَعْلَمُ وَأَنتُمْ لَا تَعْلَمُونَ Qur’an Al-Baqara (2:216)Kutiba AAalaykumu alqitalu wahuwa kurhun lakum waAAasa an takrahoo shayan wahuwa khayrun lakum waAAasa an tuhibboo shayan wahuwa sharrun lakum waAllahu yaAAlamu waantum la taAAlamoona
Insofar as it relates to fighting, this verse must be read in conjunction with {2:190-193} and 22:39 : but it expresses, in addition, a general truth applicable to many situations.
To fight in the cause of Truth is one of the highest forms of charity. What can you offer that is more precious than your own life? But here again the limitations come in. If you are a mere brawler, or a selfish aggressive person, or a vainglorious bully, you deserve the highest censure. If you offer your life to the righteous Iman, who is only guided by God, you are an unselfish here. God knows the value of things better than you do.