Mishneh Torah
See further: Mishneh Torah "Shabbat" 10:16–18, 23:4–9; Chayei Adam "Shabbos" 44