John Kennedy actually said...
But if, on the other hand, I should win the election, then I shall devote every effort of mind and spirit to fulfilling the oath of the Presidency.
Context
Speech of Senator John F. Kennedy, Greater Houston Ministerial Association, Rice Hotel, Houston, TX
09/11/1960