סימן י סעיף כ
חוֹלְצִין מְעֻמָּד. מֵסִיר אֶת הַכְּרִיכוֹת מִן הָאֶצְבַּע וּשְׁתַּיִם אוֹ שָׁלֹשׁ כְּרִיכוֹת מֵהַזְּרוֹעַ. וְחוֹלֵץ תְּחִלָּה שֶׁל רֹאשׁ וְאַחַר כָּךְ חוֹלֵץ שֶׁל יָד, מִשּׁוּם דִּכְתִיב, וְהָיוּ לְטֹטָפֹת בֵּין עֵינֶיךָ, וּמִדִּכְתִיב וְהָיוּ לְשׁוֹן רַבִּים, דָּרְשׁוּ רַבּוֹתֵינוּ זִכְרוֹנָם לִבְרָכָה, כָּל זְמַן שֶׁבֵּין עֵינֶיךָ יִהְיוּ שְׁתַּיִם וְלָכֵן מַנִּיחִין תְּחִלָּה שֶׁל יָד וְחוֹלְצִין תְּחִלָּה שֶׁל רֹאשׁ, שֶׁכָּל זְמַן שֶׁיֵּשׁ עָלָיו שֶׁל רֹאשׁ, תִּהְיֶה עָלָיו גַּם שֶׁל יָד. וְיֵשׁ לַחֲלֹץ שֶׁל רֹאשׁ בְּיַד שְׂמֹאל שֶׁהִיא יַד כֵּהָה כְּדֵי לְהַרְאוֹת שֶׁקָּשָׁה עָלָיו חֲלִיצָתָן, מִפְּנֵי שֶׁהַמִּצְוָה הִיא שֶׁיִהְיוּ עָלָיו תְּפִלִּין כָּל הַיּוֹם, אֶלָּא שֶׁמִּפְּנֵי שֶׁאֵין לָנוּ גּוּף נָקִי, חוֹלְצִין מִיָּד לְאַחַר הַתְּפִלָּה. וְלֹא יַחֲלֹץ אֶת הַתְּפִלִּין לֹא בִפְנֵי סֵפֶר תּוֹרָה וְלֹא בִפְנֵי רַבּוֹ אֶלָּא יְסַלֵּק עַצְמוֹ לִצְדָדִים מִנְהַג חֲכָמִים לְנַשֵּׁק אֶת הַתְּפִלִּין בִּשְׁעַת הַנָּחָתָן וּבִשְׁעַת חֲלִיצָתָן. אֵין לְהָסִיר אֶת הַטַּלִּית עַד לְאַחַר חֲלִיצַת הַתְּפִלִּין (כ"ה ס"ח).
The tefillin are removed while standing. You should unwind the coils from the middle finger and two or three coils from the arm.40This custom is not mentioned in Mishnah Berurah. The shel rosh is removed first and then the shel yad because it is written "They shall be for totafos between your eyes." Since it says "They shall be" in the plural tense, our Sages of blessed memory, elicit that as long [as the shel rosh] is between your eyes, both tefillin should be on you. Therefore, you put on the tefillin shel yad first and remove the shel rosh first, so that whenever the shel rosh is on you, the shel yad should also be on you. You should remove the shel rosh with the left hand which is the weaker hand in order to demonstrate that you are reluctant to remove them, because ideally the mitzvah is to wear the tefillin the entire day; but because our bodies are not always clean we remove them immediately after prayers. You should not remove the tefillin in the presence of the Seifer Torah nor in the presence of your rebbe41I.e., the person who teaches you Torah. but you should turn aside [and remove them]. It is a custom ordained by our Sages to kiss the tefillin when putting them on and taking them off. You should not remove the tallis until after taking off the tefillin.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)