Sure An-Nisaa

4:90

إِلَّا ٱلَّذِينَ يَصِلُونَ إِلَىٰ قَوْمٍۭ بَيْنَكُمْ وَبَيْنَهُم مِّيثَٰقٌ أَوْ جَآءُوكُمْ حَصِرَتْ صُدُورُهُمْ أَن يُقَٰتِلُوكُمْ أَوْ يُقَٰتِلُوا۟ قَوْمَهُمْ ۚ وَلَوْ شَآءَ ٱللَّهُ لَسَلَّطَهُمْ عَلَيْكُمْ فَلَقَٰتَلُوكُمْ ۚ فَإِنِ ٱعْتَزَلُوكُمْ فَلَمْ يُقَٰتِلُوكُمْ وَأَلْقَوْا۟ إِلَيْكُمُ ٱلسَّلَمَ فَمَا جَعَلَ ٱللَّهُ لَكُمْ عَلَيْهِمْ سَبِيلًۭا

außer denjenigen, die sich einem Volk anschließen, zwischen dem und euch ein Abkommen besteht, oder die zu euch gekommen sind, weil ihre Brüste beklommen sind, gegen euch zu kämpfen oder gegen ihr (eigenes) Volk zu kämpfen. Und wenn Allah gewollt hätte, hätte Er ihnen wahrlich Gewalt über euch gegeben, und dann hätten sie gegen euch wahrlich gekämpft. Wenn sie sich jedoch von euch fernhalten und dann nicht gegen euch kämpfen, sondern Frieden anbieten, so hat euch Allah keine Veranlassung gegeben, gegen sie (vorzugehen).

Tafsir 4:90

But you cannot act like this with those of them who join a people with whom you have a peace treaty or those who come to you reluctant to fight against you or their own people. If Allah willed to give them power over you, He would have done so and they would have fought you. Therefore, accept the safety that Allah has given you and do not interfere with them by killing or taking any one of them as captives. If they stay away without fighting you and they come to you to make peace, then Allah has not given you any authority to fight them or take any of them as prisoners.