We need to look back on what we have learned in Exodus. Exodus is the most powerful book in the Bible because it reveals many aspects of God’s character. One of the lessons of the Book of Exodus is that often, the good deeds of great men are “seldom remembered” while the memory of “men who do great harm” live on.
This was true of both Joseph and Moses. As far as Egyptian history is concerned, both of these great men were rejected because of the arrogance of the Pharaoh. We are blessed by God that we have the Torah from God Himself, who made sure their deeds is recorded for us. God has not kept His will a secret. It’s all in the Bible.