阴错阳差

yīn cuò yáng chā

(idiom) due to an unexpected turn of events

yīn

variant of 陰|阴[yin1]

cuò

mistake

yáng

positive (electric.)

chā

difference; discrepancy