The Reminder Of The Rainbow

God also put a rainbow in the sky to be a constant reminder that He would never destroy the world again by water. Yet right after the flood, Noah`s son, Ham, sinned against God by showing disrespect to his father, Noah (Gen 9) and Noah cursed Ham`s son, Canaan, why we are not told. Then God spoke through Noah again and prophesied about his three sons, Shem, Ham, and Japheth and also that the Messiah would come through Shem`s family, and Japheth`s family would share in that salvation.

Link: https://bible-history.com/old-testament/the-flood