The actual attitude in that part of the world has existed for centuries, if not millennia:

The proverb in Arabic is 'عدو عدوي هو صديقي' ('Adu 'Aduyi Hooweh Ssadikki - My enemy's enemy is my friend).[citation needed] A similar Bedouin Arabic proverb is 'أنا وأخي على ابن عمي وأنا وابن عمي على الغريب' (Anna WaAkhi Al Ibn Ammi, WaAnna WaIbn Ammiya Alla Karib - Me and my brother against my cousin, and [but] me and my cousin against a stranger ).