This is a common metaphor, not a unique famous quote. It describes internal conflict (cognitive dissonance, ambivalence, divided loyalty).
Without context, the speaker is unidentifiable. It could be from:
To trace it: Provide where you heard it (book, show, conversation, social media), the speaker, or surrounding sentences.