7הַמַּשְׂכִּיר בַּיִת לַחֲבֵרוֹ סְתָם אֵינוֹ יָכוֹל לְהוֹצִיאוֹ עַד שֶׁיּוֹדִיעוֹ שְׁלֹשִׁים יוֹם מִקֹּדֶם כְּדֵי לְבַקֵּשׁ מָקוֹם וְלֹא יִהְיֶה מֻשְׁלָךְ בַּדֶּרֶךְ וּלְסוֹף הַשְּׁלֹשִׁים יֵצֵא. בַּמֶּה דְּבָרִים אֲמוּרִים בִּימוֹת הַחַמָּה אֲבָל בִּימוֹת הַגְּשָׁמִים אֵינוֹ יָכוֹל לְהוֹצִיאוֹ מִן הֶחָג וְעַד הַפֶּסַח. קָבַע לוֹ שְׁלֹשִׁים לִפְנֵי הֶחָג אִם נִשְׁאַר מִן הַשְּׁלֹשִׁים יוֹם אֲפִלּוּ יוֹם אֶחָד לְאַחַר הֶחָג אֵינוֹ יָכוֹל לְהוֹצִיאוֹ עַד מוֹצָאֵי הַפֶּסַח וְהוּא שֶׁיּוֹדִיעוֹ שְׁלֹשִׁים יוֹם מִקֹּדֶם. בַּמֶּה דְּבָרִים אֲמוּרִים בַּעֲיָרוֹת אֲבָל בַּכְּרַכִּים אֶחָד יְמוֹת הַחַמָּה וְאֶחָד יְמוֹת הַגְּשָׁמִים צָרִיךְ לְהוֹדִיעוֹ שְׁנֵים עָשָׂר חֹדֶשׁ מִקֹּדֶם. וְכֵן בַּחֲנוּת בֵּין בַּכְּרַכִּים בֵּין בַּעֲיָרוֹת צָרִיךְ לְהוֹדִיעוֹ שְׁנֵים עָשָׂר חֹדֶשׁ מִקֹּדֶם:
When a person rents a house to a colleague without specifying the termination of the contract, he may not force him to leave the home unless he notifies him 30 days in advance, so that he can look for another place and will not be homeless. After 30 days, however, he must leave. When does the above apply? In the summer. In the winter, by contrast, he may not force him to leave from Sukkot until Pesach. When the owner gives the renter 30 days notice before Sukkot, if even one day from the 30 is after Sukkot, the owner may not compel him to leave until after Pesach. And he must notify him 30 days previously. When does the above apply? In small towns. In large cities, by contrast, whether in the summer or the winter, the owner must notify the renter twelve months in advance. Similarly, with regard to a store, whether in a large city or in a small town, the owner must notify the renter twelve months in advance.