wèi​wǔ​dǒu​mǐ​zhé​yāo

bow for pay

为五斗米折腰 (為五斗米折腰) wèi​wǔ​dǒu​mǐ​zhé​yāo
bow for pay
to humble oneself or act subserviently for a meager salary, in allusion to Tao Qian's refusal to serve for "five pecks of rice"
compromise principles
to sacrifice one's personal integrity or values for the sake of material gain or financial security

Sources

Definitions
CC-CEDICT