א מִצְוַת עֲשֵׂה לִכְתֹּב פ' שְׁמַע (דְּבָרִים ו, ד ט) וְהָיָה אִם שָׁמוֹעַ (דְּבָרִים יא, יג כא) וּלְקָבְעָם עַל מְזוּזַת הַפֶּתַח, וְצָרִיךְ לִזָּהֵר בָּהּ מְאֹד; וְכָל הַזָּהִיר בָּהּ, יַאֲרִיכוּ יָמָיו וִימֵי בָּנָיו. וְאִם אֵינוֹ זָהִיר בָּהּ, יִתְקַצְּרוּ. הַגָּה: וּמִכָּל מָקוֹם אִם אֵין יָדוֹ מַשֶּׂגֶת לִקְנוֹת תְּפִלִּין וּמְזוּזָה, יִקְנֶה תְּפִלִּין וְלֹא מְזוּזָה (יְרוּשַׁלְמִי סוֹף מְגִלָּה ובא"ח סי' נ"ח סי"ב), דְּמִצְוָה שֶׁהִיא חוֹבַת הַגּוּף עֲדִיפָא.
1 The reward and mitzva of mezuzah. Containing 2 paragraphs: It is a positive commandment to write the Shema, the Veyhaya Im-Shamoa, and to fix them on the side of one’s door, and one needs to be very careful in this, and all who are careful in this, their days will be lengthened, and the days of their children. And if one is not careful in this, his days will be shortened. Rema: And in any case, if it's out of his reach to acquir Tefillin and a Mezuzah, let him acquire Tefillin and not Mezuzah (Yerushalmi Megillah, end; O"C 38:12), as a mitzvah that is a bodily obligation is greater.