know which side your bread is buttered on

US /noʊ wɪtʃ saɪd jʊər brɛd ɪz ˈbʌtərd ɑn/
UK /noʊ wɪtʃ saɪd jʊər brɛd ɪz ˈbʌtərd ɑn/
"know which side your bread is buttered on" picture
1.

to be aware of where your advantages or benefits come from and to act in a way that maintains them

:
He always helps his boss because he knows which side his bread is buttered on.
You need to know which side your bread is buttered on if you want to succeed in this company.