The Lord spake these words unto me [Abraham]: I will multiply thee, and thy seed after thee, like unto these; and if thou canst count the number of sands, so shall be the number of thy seeds. 3:14
The king of Egypt was a Canaanite, who was directly descended from the loins of Ham. 1:21
All of the Egyptians descended from him, preserving the blood of the Canaanites. 1:22
Egypt was discovered by a woman who was the daughter of Ham and Egyptus (which is Egypt in the Chaldean language, signifying that which is forbidden). 1:23
When this woman discovered Egypt it was under water. Later her sons settled there.
So in this way the curse of Ham was preserved in that race. 1:24
Pharaoh ruled wisely, and was blessed by his father Noah with the blessings of the earth, but cursed him when it came to the priesthood. 1:26