Sura 40:23-25 says, "And truly We sent Moses with our revelation and a clear warrant unto Pharaoh and Haman and Qarun, but they said, `A lying sorcerer!' And when he brought them the truth from our presence, they said, `Slay the sons of those who believe with him....'"
From this, we learn that Pharaoh ordered the killing of the sons of
the Jews when Moses approached him with the truth. But Sura 20:38-39
says, "When We inspired in your mother that which is inspired, saying,
`Throw him into the ark, and throw it into the river....'"
This means that Pharaoh commanded his men to kill the sons of the Jews when Moses was a child. Moses had not yet received any revelation from God.
Contradictions in the Qur'an
Answering Islam Home Page