Mishneh Torah
See further: Mishneh Torah "Shabbat" 10:1–6; Chayei Adam "Shabbos" 26