The enemy of my enemy is my friend.
~ Saudi Proverb [18498]

Opposite variation:

The friends of your friends are our friends. ~ French Proverb [18499]

More Saudi Proverbs