It was illegal to free a slave, according to Virginia law. Jefferson tried to get it overturned in the Virginia legislature. Washington had written in his will that his slaves be freed and given generous amounts of land, but that was in Pennsylvania.
No it wasn't, though after the early 1800's freed slaves had 12 months to leave the Commonwealth or they would be sold back into slavery.