Mishneh Torah
See further: Mishneh Torah "Shabbat" 22:1–10; Shulkhan Arukh Orach Chayim 318; Chayei Adam "Shabbos" 22