وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا۟ بِمِثْلِ مَا عُوقِبْتُم بِهِۦ ۖ وَلَئِن صَبَرْتُمْ لَهُوَ خَيْرٌ لِّلصَّـٰبِرِينَ
Wa in 'aaqabtum fa'aaqiboo bimisli maa 'ooqibtum bihee wa la'in sabartum lahuwa khairul lissaabireen
If you [believers] have to respond to an attack, make your response proportionate, but it is best to stand fast.
If you retaliate, retaliate only with the like of what was inflicted on you. But if you are patient, that is better for those who are patient.