Mishneh Torah
See further: Mishneh Torah "Shabbat" 11:1–4; Shulkhan Arukh Orach Chayim 316; Chayei Adam "Shabbos" 31