Massachusetts had 0 slaves as far back as 1790 because the Massachusetts court said that slavery violated the principles of the U.S. Constitution.
If I recall correctly, the first Massachusetts state constitution outlawed slavery.