There is no evidence to suggest that Lincoln did actually say this. It would have been particularly foolish for any politician to come out with something like this at the time of the Civil Wars. I suspect he said something that didn't have the same meaning that was then taken out of all proportion and attributed to him in retrospect.