Genesis 9:22-27

ISV(i) 22 Ham, who fathered Canaan, saw his father’s genitals and told his two brothers outside. 23 Then Shem and Japheth took their father’s cloak, laid it across both their shoulders, and walking backwards, they both covered their father’s genitals. Their faces were turned away, and they did not see their father’s genitals. 24 When Noah sobered up and learned what his youngest son had done to him, 25 he said, “Canaan is cursed! He will be the lowest of slaves to his relatives.”
26 He also said, “Blessed be the LORD God of Shem, and may Canaan be his slave. 27 May God make room for Japheth; may God live in Shem’s tents, and may Canaan serve him.”