The line is associated with Gene Kranz, the NASA flight director during Apollo 13. He did not say it. It was written for the 1995 film.
Kranz liked it enough to use it as the title of his memoir. An invented line about American determination was adopted by the man it was invented for.