Mishneh Torah
See further: Mishneh Torah "Shabbat" 8:3–5, 21:6–10; Chayei Adam "Shabbos" 12