For idolatry, how do we know it? That at the moment they made the calf, they were stricken with leprosy, as it is said, "And Moses saw the people, that it was broken loose (parua)" (Exodus 32:25); and it is written concerning the leper, "his head shall be let loose (parua)" (Leviticus 13:45). And for blaspheming the Name, how do we know it? From Goliath, as it is said, "Choose for yourselves a man (ish)" (I Samuel 17:8) - and "man" (ish) is none other than the Holy One, blessed be He, as it is said, "The LORD is a man (ish) of war" (Exodus 15:3); and it is written, "This day He will shut you up (yasgircha)" - and "shutting up" (segirah) is none other than leprosy, as it is said, "And the priest shall shut him up (ve-hisgiro)" (Leviticus 13:5). And for forbidden relations, as it is written, "And the LORD will smite with a scab (ve-sipach) the crown" (Isaiah 3:17); and it is written, "and for the rising, and for the scab (la-sapachat), and for the bright spot" (Leviticus 14:56). For thefts and for a false oath, as it is said, "I have brought it forth, says the LORD [of hosts], and it shall enter into the house of the thief and into the house of him who swears falsely by My name; and it shall lodge in the midst of his house and consume it, both its timbers and its stones" (Zechariah 5:4). And what is the thing that consumes timbers and stones? You must say this is leprosy, as it is written, "And he shall break down the house, [its stones and its timbers]" (Leviticus 14:45). And for slander (lashon ha-ra), from Miriam, [as it is written, "and behold, Miriam was leprous, like snow; and Aaron turned toward Miriam, and behold, she was leprous"] (Numbers 12:10); and it says, "This shall be the law of the leper (ha-metzora)" - the one who brings forth evil (ha-motzi ra). And for those who give false testimony - for Israel testified concerning the Holy One, blessed be He, and said, "These are your gods, O Israel" (Exodus 32:4), and they were stricken with leprosy, as it is written, "And Moses saw the people, that it was broken loose (parua)" (ibid. ibid. 25). And for the judge who corrupts judgment, as it is said, "And it shall be, as a tongue of fire devours stubble, and as the chaff sinks down in the flame, their [root] shall be as rottenness, and their [blossom] shall go up as dust; because they have rejected the law of the LORD of hosts, and spurned the word of the Holy One of Israel" (Isaiah 5:24) - and "their blossom" (parcham) is none other than leprosy, as it is said, "If the leprosy breaks out (paroach tifrach)" (Leviticus 13:12). And for one who enters a domain that is not his, from Uzziah, who entered the domain of the priesthood, as it is said, "and the leprosy broke out (zarcha) on his forehead" (II Chronicles 26:19). And for one who sows strife between brothers, as it is said, "And the LORD plagued Pharaoh" (Genesis 12:17) - because he took Sarah from Abraham.
Eleven Sins That Bring Tzara'at in Midrash Tanchuma Metzora
Midrash Tanchuma Buber, Metzora 10:2
על ע"ז מנין, שבשעה שעשו את העגל לקו בצרעת, שנאמר וירא משה את העם כי פרוע הוא (שמות לב כה), וכתיב במצורע ראשו יהיה פרוע (ויקרא יג מה). ועל ברכת השם מנין, מגלית שנאמר ברו לכם איש (ש"א יז ח), ואין איש אלא הקב"ה, שנאמר ה' איש מלחמה (שמות טו ג), וכתיב היום הזה יסגרך, ואין סגירה אלא צרעת, שנאמר והסגירו הכהן (ויקרא יג ה). ועל גילוי עריות, דכתיב וספח ה' קדקד (ישעיה ג יז), וכתיב ולשאת ולספחת ולבהרת (ויקרא יד נו). על הגניבות ועל שבועת שוא, שנאמר הוצאתיה נאם ה' (אלהים) [צבאות] ובאה אל בית הגנב ואל בית הנשבע בשמי לשקר ולנה בתוך ביתו וכלתו (את) [ואת] עציו ואת אבניו (זכריה ה ד), ואיזה הוא דבר שמכלה עצים ואבנים, הוי אומר זה צרעת, דכתיב ונתץ את הבית [את אבניו ואת עציו] (ויקרא יד מה). ועל לשון הרע, מן מרים, [דכתיב והנה מרים מצורעת כשלג, ויפן אהרן אל מרים והנה מצורעת] (במדבר יב י), ואומר זאת תהיה תורת המצורע, המוציא רע. ועל מעידי עדות שקר, שהעידו ישראל על הקב"ה ואמרו אלה אלהיך ישראל (שמות לב ד), לקו בצרעת, דכתיב וירא משה את העם כי פרוע הוא (שם שם כה). ועל הדיין המקלקל את דין, שנאמר והיה כאכל קש לשון אש וחשש להבה ירפא (פרחם) [שרשם] כמק יהיה (ושרשם) [ופרחם] כאבק יעלה כי מאסו את תורת ה' צבאות ואת אמרת קדוש ישראל נאצו (ישעיה ה כד), ואין פרחם אלא צרעת, שנאמר אם פרוח תפרח הצרעת (ויקרא יג יב). ועל הנכנס בתחום שאינו שלו, מן עוזיהו שנכנס בתחום הכהונה, שנאמר והצרעת זרחה במצחו (דה"ב כו יט). ועל המשלח מדנים בין אחים, שנאמר וינגע ה' את פרעה (בראשית יב יז), על שנטל שרה מאברהם.