Bava Basra2: 4
מִי שֶׁהָיָה כָתְלוֹ סָמוּךְ לְכֹתֶל חֲבֵרוֹ לֹא יִסְמֹךְ לוֹ כֹתֶל אַחֵר אֶלָּא אִם כֵּן הִרְחִיק מִמֶּנּוּ אַרְבַּע אַמּוֹת. וְהַחַלּוֹנוֹת — מִלְמַעְלָן, וּמִלְּמַטָּן, וּמִכְּנֶגְדָן — אַרְבַּע אַמּוֹת.
One whose wall was near the wall of another may not place another wall near it unless he distances [it] four cubits from it. And [with regard to] windows —- [he must leave] four cubits above them, below them, and opposite them.