That was Grant. Grant finished his memoirs on his deathbed so that his widow would be provided for by money from their sale. He was also a damn good writer and Mark Twain published it which didn't hurt.
While Grant was financially troubled, the pension wasn't passed until Truman was destitute in 1958.