Perhaps you're thinking of Fermat[0], who famously remarked
"I have discovered a truly remarkable proof of this theorem which this margin is too small to contain.", and promptly proceeded to take the solution with him to the other side.
I doubt anyone burned his manuscripts however, but I seem to recall an article where they mentioned that everyone searched for the solution (or for his approach) in every one of his notebooks, but couldn't find it.