Noah was a just man and perfect in his generations, and Noah walked with God. Genesis 6:9
And Noah began to be an husbandman, and he planted a vineyard: And he drank of the wine, and was drunken; and he was uncovered within his tent.
And Ham, the father of Canaan, saw the nakedness of his father. ... Noah awoke from his wine, and knew what his younger son had done unto him. And he said, Cursed be Canaan; a servant of servants shall he be unto his brethren. Genesis 9:20-25