If you [have reason to] fear from a people betrayal, throw [their treaty] back to them, [putting you] on equal terms.1 Indeed, Allāh does not like traitors.
Translation: Saheeh International (English)
1 When you see signs of treachery from those with whom you have made a treaty, announce to them its dissolution so they will know exactly where they stand.
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.