Alabama constitution
Article I: declaration of rights
Section 7

That no person shall be accused or arrested, or detained, except in cases ascertained by law, and according to the form which the same has prescribed; and no person shall be punished but by virtue of a law established and promulgated prior to the offense and legally applied.