"And behold, twins." It is written full [te'omim, with the letter that makes the word plural-complete], by allusion [to teach about] "and her days to be delivered were fulfilled." Three are believed at once [without further proof], and these are they: the midwife, the caravan, and the woman who declares her companion pure [from menstrual impurity], provided it is within the same span of time [me'et le'et]. (Genesis 38:29) "And it came to pass, as he drew back his hand." This is Rabbah [son of Peretz's line] who rose over all the breakers; "from you shall arise the breaker who goes up before them" (Micah 2:13). (Genesis 38:30) "And afterward came out his brother" [Zerach]. How many [mentions of a] hand are written here? Rav Huna said: Four, corresponding to the four bans [of destruction] that he [a descendant] is destined to stretch out his hand against: the ban of Amalek, the ban of Sihon and Og, the ban of Jericho, and the ban of the Canaanites. Rabbi Yudan said: Corresponding to the four things [a descendant] is destined to take from the banned spoil, as it is said, "And I saw among the spoil a goodly mantle of Shinar, and two hundred shekels of silver, and a wedge of gold" (Joshua 7:21).
Peretz Who Breaks Through and the Bans of His Line
Yalkut Shimoni on Torah 145:13
וְהִנֵּה תְאוֹמִים. מָלֵא כְּתִיב בְּרֶמֶז קד עַל וַיִּמְלְאוּ יָמֶיהָ לָלֶדֶת. שְׁלשָׁה הֵן נֶאֱמָנִין לְאַלְתַּר, וְאֵלּוּ הֵן, הַחַיָּה וְהַשַּׁיָּרָא וְהַמְּטַהֶרֶת חֲבֶרְתָּהּ [וּבִלְבַד] מֵעֵת לְעֵת וְכוּ'. (בראשית לח כט) וַיְהִי כְּמֵשִׁיב יָדוֹ. זֶה רַבֶּה עַל כָּל הַפָּרִיצִים מִמְּךָ יַעֲמֹד "עָלָה הַפֹּרֵץ לִפְנֵיהֶם". (בראשית לח ל) וְאַחַר יָצָא אָחִיו. כַּמָּה יָדוֹת כְּתוּבוֹת כָּאן, רַב הוּנָא אָמַר אַרְבַּע כְּנֶגֶד אַרְבַּע חֲרָמִים שֶׁהוּא עָתִיד לִפְשֹׁט אֶת יָדוֹ [בָּהֶן], חֶרְמוֹ שֶׁל עֲמָלֵק וְחֶרְמוֹ שֶׁל סִיחוֹן וְעוֹג, וְחֶרְמוֹ שֶׁל יְרִיחוֹ, וְחֶרְמָן שֶׁל כְּנַעֲנִיִּים. רַבִּי יוּדָן אָמַר, כְּנֶגֶד אַרְבָּעָה דְּבָרִים שֶׁהוּא עָתִיד לִטּוֹל מִן הַחֵרֶם, שֶׁנֶּאֱמַר (יהושע ז, כא) "וָאֵרֶא(ה) בַשָּׁלָל אַדֶּרֶת שִׁנְעָר [אַחַת] טוֹבָה (מְאֹד) וּמָאתַיִם (שֶׁקֶל) [שְׁקָלִים] כֶּסֶף וּלְשׁוֹן זָהָב אֶחָד".