Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:2:194

˹Fighting in˺ the sacred month is for ˹aggression committed in˺ the sacred month, and for ˹all˺ violations is legal retribution. So whoever has assaulted you, then assault him in the same way that he has assaulted you. And fear Allah and know that Allah is with those who fear Him.  

The sacred month, in return, for the sacred month, therefore, just as they fight you during it, kill them during it: a response to the Muslims’ consideration of the momentous nature of this matter; holy things (hurumāt, plural of hurma, is what must be treated as sacrosanct) demand retaliation, in kind if these ˹holy things˺ are violated; whoever commits aggression against you, through fighting in the Sacred Enclosure, or during a state of ritual purity or in the sacred months, then commit aggression against him in the manner that he committed against you, the ˹Muslim˺ response is also referred to as ‘aggression’, because that is what it resembles formally; and fear God, when avenging yourselves and ˹by˺ renouncing aggression, and know that God is with the God-fearing, helping and assisting ˹them˺.
القرآن:٢:١٩٤

الشَّهْرُ الْحَرَامُ بِالشَّهْرِ الْحَرَامِ وَالْحُرُمَاتُ قِصَاصٌ ۚ فَمَنِ اعْتَدَىٰ عَلَيْكُمْ فَاعْتَدُوا عَلَيْهِ بِمِثْلِ مَا اعْتَدَىٰ عَلَيْكُمْ ۚ وَاتَّقُوا اللَّهَ وَاعْلَمُوا أَنَّ اللَّهَ مَعَ الْمُتَّقِينَ  

{الشهر الحرام} المحرم مقابل {بالشهر الحرام} فكلما قاتلوكم فيه فاقتلوهم في مثله رد لاستعظام المسلمين ذلك {والحرمات} جمع حرمة ما يجب احترامه {قصاص} أي يقتص بمثلها إذا انتهكت {فمن اعتدى عليكم} بالقتال في الحرم أو الإحرام أو الشهر الحرام {فاعتدوا عليه بمثل ما اعتدى عليكم} سمى مقابلته اعتداء لشبهها بالمقابل به في الصورة {واتقوا الله} في الانتصار وترك الاعتداء {واعلموا أن الله مع المتقين} بالعون والنصر.