John Kennedy actually said...
No man can serve two masters, for either he will hate one and love the other, or else he will hold to one and despise the other.
Context
Speech of Senator John F. Kennedy, Wittenberg College Stadium, Springfield, Ohio
10/16/1960