The line: "History will be kind to me, for I intend to write it" is attributed to Winston Churchill; however, he didn't actually say it. He actually said: "For my part, I consider that it will be found much better by all Parties to leave the past to history, especially as I propose to write that history." Thus the gist of these two sayings are the same.

Scholars and historians have noted that making history is not the same as writing about it. When people are on the losing side, the winners are going to give them bad reviews. Had the victory in WW II been Hitler's, people would most likely be reading about that cowardly dog, Churchill. Hitler's autobiography might have included a chapter or two on how he out smarted the Allies of World War II and made Germany a world power.

"History will be kind to me, for I intend to write it" was Churchill's way of saying he was going to be the winner, as well as the keeper of his own legacy. It's been said that the winners will write astute history books. Churchill was acknowledging this fact when he used the above quote. He was also making it known that, after dusting the floor with the Nazis, he was going put in a good word for himself for others to read about.

More Info: literature.stackexchange.com