Less than a hundred years ago, the Arabs joined forces with the British infidels to destroy the Ottoman caliphate.
Oh, of course there’s nothing saying muslims can’t have temporary allies. That’s established MO. Even there you’ll see an undercurrent of deception.
The end result, though, is always the same.