Sure Al-Anfaal

8:58

وَإِمَّا تَخَافَنَّ مِن قَوْمٍ خِيَانَةًۭ فَٱنۢبِذْ إِلَيْهِمْ عَلَىٰ سَوَآءٍ ۚ إِنَّ ٱللَّهَ لَا يُحِبُّ ٱلْخَآئِنِينَ

Und wenn du dann von irgendwelchen Leuten Verrat befürchtest, so verwirf ihnen (die Verpflichtung) in gleicher Weise. Gewiß, Allah liebt nicht die Verräter.

Tafsir 8:58

If you, O Messenger, become afraid, due to a sign that becomes obvious to you, that a people with whom you entered into a treaty will betray you and break the treaty, then inform them that the treaty is cancelled, so that they are not unjustly disadvantaged. Do not attack them suddenly without informing them, because doing so will be treachery on your part and Allah does not love those who are treacherous. Instead, He detests such people, so be careful of treachery.