New hampshire constitution
Part I – bill of rights
Article 34

No person can, in any case, be subjected to law martial, or to any pains or penalties by virtue of that law, except those employed in the army or navy, and except the militia in actual service, but by authority of the legislature.