Mishneh Torah
See further: Mishneh Torah "Shabbat" 10:12–14 22:25–33; Chayei Adam "Shabbos" 39–44