Slavery when Abraham Lincoln was elected President

When Abraham Lincoln was elected president in 1862, he passed a law that said all states that were still rebelling a hundred days after September 22nd, would be free forever.