Spooner's "The Unconstitutionality of Slavery" was published in 1845:
This right of a man “to keep and bear arms,” is a right palpably inconsistent with the idea of his being a slave. Yet the right is secured as effectually to those whom the States presume to call slaves, as to any whom the States condescend to acknowledge free.
Under this provision any man has a right either to give or sell arms to those persons whom the States call slaves; and there is no constitutional power, in either the national or State governments, that can punish him for so doing; or that can take those arms from the slaves; or that can make it criminal for the slaves to use them, if, from the inefficiency of the laws, it should become necessary for them to do so, in defence of their own lives or liberties; for this constitutional right to keep arms implies the constitutional right to use them, if need be, for the defence of one’s liberty or life.