What did president Lincoln issue that changed the reason for fighting and freed the slaves in the confederacy?

Because the Declaration Of Independence states all men are equal.