Dates: c. 3rd–6th century (Amoraic traditions in the Babylonian Talmud and Genesis Rabbah, redacted before the mid-6th c.)
Summary: The classical rabbinic sources are where two things first appear that the Genesis text never says: a graphic account of what Ham did to Noah (castration or sexual abuse, not mere looking), and — in a wholly separate tradition — the idea that Ham was punished by his skin turning black. This second, color-coding strand is the earliest datable seed of the racialized “curse of Ham,” though in the rabbinic sources it is an etiology of dark skin, not yet fused to the curse of slavery.
“Rav and Shmuel [disagree]. One says that Ham castrated Noah, and one says that Ham sodomized him… The one who says that Ham castrated Noah [reasons that] since he prevented him from having a fourth son, Noah cursed him by [cursing] his fourth son [Canaan].”
— Babylonian Talmud, Sanhedrin 70a (William Davidson translation). The sages read “saw the nakedness of his father” (Genesis 9:22) as a euphemism, and the “youngest son” and “fourth son” language of the curse as its clue — the castration reading in particular explains why Canaan, Ham’s fourth son, bears it (Ham robbed Noah of a fourth son, so Noah struck Ham’s fourth son). This whole debate is weighed on the Ham’s-offense argument page.
“The Sages taught: Three violated that directive and engaged in intercourse while in the ark, and all of them were punished for doing so. They are: The dog, and the raven, and Ham, son of Noah… Ham was afflicted in that his skin turned black.”
— Babylonian Talmud, Sanhedrin 108b (Davidson; Aramaic Ḥam laqah be-‘oro, “Ham was smitten in his skin”). Note carefully: this punishment is not attached to Noah’s curse at all — it is a separate aggadah about intercourse on the ark, and the thing inherited is dark skin, not servitude. Genesis Rabbah preserves the same tradition with a play on the assumed etymology of Ham’s name:
“You prevented me from performing an act that is done in darkness… therefore, that man [Canaan] will be ugly and darkened… So, Ḥam and the dog engaged in sexual relations in the ark, and that is why Ḥam emerged darkened.”
— Genesis Rabbah 36:7 (Sefaria). The blackening rides on a folk etymology — the name “Ham” heard as if it meant “dark/hot” — which modern philology has shown to be false.