Richard Nixon did it.
Thanks for the info. Yes, Nixon came back in 1968 after his loss to JFK in 1960.
He’s the exception to the group I was thinking of, such as John Kerry, Al Gore, Dukakis, John McCain, George HW Bush, Jimmy Carter, Walter Mondale — who never ran for president again after their general election losses.