敵人的敵人就是朋友

rénrénjiùshìpéngyǒu

the enemy of my enemy is my friend

Wiktionary

Entry Composition