know what/which side of the bread is buttered (on), to
To know where one’s best interests lie. This metaphor appeared in John Heywood’s Proverbs of 1546 (“I know on which syde my bread is buttered”), and was used so often over the centuries that it was a cliché by about 1800.