Article XIII of the Pennsylvania Declaration of Rights of 1776 read:
>That the people have a right to bear arms for the defence of themselves and the state; and as standing armies in the time of peace are dangerous to liberty, they ought not to be kept up; And that the military should be kept under strict subordination to, and governed by, the civil power.
Similarly, as another example, Massachusetts’s Declaration of Rights from 1780 provided:
>The people have a right to keep and to bear arms for the common defence. And as, in time of peace, armies are dangerous to liberty, they ought not to be maintained without the consent of the legislature; and the military power shall always be held in an exact subordination to the civil authority, and be governed by it.
James Madison produced an initial draft of the Second Amendment as follows:
>The right of the people to keep and bear arms shall not be infringed; a well armed and well regulated militia being the best security of a free country: but no person religiously scrupulous of bearing arms shall be compelled to render military service in person.
I pulled the quotes from this link, which has more text and discussion.
https://constitution.congress.gov/browse/essay/amdt2-2/ALDE_...