Bava Basra6: 4
הַמּוֹכֵר מָקוֹם לַחֲבֵרוֹ לִבְנוֹת לוֹ בַיִת, וְכֵן הַמְקַבֵּל מֵחֲבֵרוֹ לִבְנוֹת לוֹ בֵית חַתְנוּת לִבְנוֹ וּבֵית אַלְמְנוּת לְבִתּוֹ — בּוֹנֶה אַרְבַּע אַמּוֹת עַל שֵׁשׁ; דִּבְרֵי רַבִּי עֲקִיבָא. רַבִּי יִשְׁמָעֵאל אוֹמֵר: רֶפֶת בָּקָר הוּא זֶה. הָרוֹצֶה לַעֲשׂוֹת רֶפֶת בָּקָר — בּוֹנֶה אַרְבַּע אַמּוֹת עַל שֵׁשׁ; בַּיִת קָטָן — שֵׁשׁ עַל שְׁמוֹנֶה; גָּדוֹל — שְׁמוֹנֶה עַל עֶשֶׂר; טְרַקְלִין — עֶשֶׂר עַל עֶשֶׂר. רוּמוֹ כַּחֲצִי אָרְכּוֹ וְכַחֲצִי רָחְבּוֹ. רְאָיָה לַדָּבָר הֵיכָל. רַבָּן שִׁמְעוֹן בֶּן גַּמְלִיאֵל אוֹמֵר: הַכֹּל כְּבִנְיַן הַהֵיכָל.
One who sells a place to another to build a house for him [on it], and similarly, one who accepts [a contract] from another to build for him a wedding house for his son or a widow house for his daughter, must build [a house] four cubits by six; [these are] the words of R' Akiva. R' Yishmael says: This is a cattle-shed. One who wants to make a cattle-shed builds [it] four cubits by six; a small house, six by eight; a large one, eight by ten; a salon, ten by ten. Its height must equal half its length and width. Proof to this [is from] the Sanctuary. Rabban Shimon ben Gamliel says: Everything follows the construction of the Sanctuary.