The Rambam · Sefer Zemanim
הלכות שבת כ״טSabbath 29
Chapter 29 of 30 in Sabbath — 29 halachot
Halacha 1א׳
מִצְוַת עֲשֵׂה מִן הַתּוֹרָה לְקַדֵּשׁ אֶת יוֹם הַשַּׁבָּת בִּדְבָרִים שֶׁנֶּאֱמַר (שמות כ ח) "זָכוֹר אֶת יוֹם הַשַּׁבָּת לְקַדְּשׁוֹ". כְּלוֹמַר זָכְרֵהוּ זְכִירַת שֶׁבַח וְקִדּוּשׁ. וְצָרִיךְ לְזָכְרֵהוּ בִּכְנִיסָתוֹ וּבִיצִיאָתוֹ. בִּכְנִיסָתוֹ בְּקִדּוּשׁ הַיּוֹם וּבִיצִיאָתוֹ בְּהַבְדָּלָה:
It is biblically mandated positive commandment to sanctify the Sabbath with speech, as it is written (Exodus 20, 7): "Remember the sabbath day, to keep it holy." i.e. Remember through remembrance of praise and through Kiddush. And it must be remembered when it begins and when it ends. When it begins - with Kiddush, and when it ends - with Havdala...
Halacha 2ב׳
וְזֶה הוּא נֹסַח קִדּוּשׁ הַיּוֹם. בָּרוּךְ אַתָּה ה' אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם אֲשֶׁר קִדְּשָׁנוּ בְּמִצְוֹתָיו וְרָצָה בָנוּ וְשַׁבַּת קָדְשׁוֹ בְּאַהֲבָה וְרָצוֹן הִנְחִילָנוּ זִכָּרוֹן לְמַעֲשֵׂה בְרֵאשִׁית תְּחִלָּה לְמִקְרָאֵי קֹדֶשׁ זֵכֶר לִיצִיאַת מִצְרָיִם כִּי בָנוּ בָחַרְתָּ וְאוֹתָנוּ קִדַּשְׁתָּ מִכָּל הָעַמִּים וְשַׁבַּת קָדְשְׁךָ בְּאַהֲבָה וּבְרָצוֹן הִנְחַלְתָּנוּ בָּרוּךְ אַתָּה ה' מְקַדֵּשׁ הַשַּׁבָּת:
And this is the language of sanctifying the day (Kiddush). Blessed are You, HaShem, our God, Eternal Sovereign, Who sanctified us through the commandments, and desired us, and has given us the Holy Sabbath through love and desire as an inheritance, a memorial for the works of creation. First of all holy occasions, a commemoration of the exodus from Egypt, for You chose us and set us as different than all peoples, and You gave us through love and desire Your Holy Sabbath as an inheritance. Blessed are You, HaShem, Who Sanctifies the Sabbath.
Halacha 3ג׳
וְזֶה הוּא נֹסַח הַהַבְדָּלָה. בָּרוּךְ אַתָּה ה' אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם הַמַּבְדִּיל בֵּין קֹדֶשׁ לְחל וּבֵין אוֹר לְחשֶׁךְ בֵּין יִשְׂרָאֵל לָעַמִּים וּבֵין יוֹם הַשְּׁבִיעִי לְשֵׁשֶׁת יְמֵי הַמַּעֲשֶׂה בָּרוּךְ אַתָּה ה' הַמַּבְדִּיל בֵּין קֹדֶשׁ לְחל:
And this is the form of the havdalah: Blessed are You, Lord our God, King of the universe, who separates between holy and profane, and between light and darkness, between Israel and the peoples, and between the seventh day and the six days of work. Blessed are You, Lord, who separates between holy and profane.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0
English: rendered from the Hebrew for this app — our own, not a borrowed translation