shēn​zài Cáo​yíng​xīn​zài Hàn

elsewhere

身在曹营心在汉 (身在曹營心在漢) shēn​zài Cáo​yíng​xīn​zài Hàn
elsewhere
to be physically present in one location while one's thoughts or heart are longing to be somewhere else
loyal
to be physically in one camp while remaining loyal to another, originally referring to Guan Yu staying with Cao Cao while remaining loyal to Liu Bei

Frequency

Written text
0.124 per million

Sources

Definitions
CC-CEDICT
Frequency data
BCC Corpus (BLCU)