Pharaoh confronted Musa (Moses) with an overpowering sense of humiliation.
Then he was judged by Allah, the Almighty.
Allah is the One Who judges all human beings on the Day of Judgment through His Vast Knowledge and Supreme Power.
It was said to Pharaoh, "You are accused of claiming divinity and of harming people out of pure tyranny Guilty or not guilty?"
Pharaoh replied, "Not guilty Claiming divinity is just a norm that is followed by kings. As for being a tyrant in harming people; it was an attitude that should be followed because common people sometimes act like animals that need to be guided, by force and strictness. Thus this cannot be called tyranny; rather it is considered an important aspect of ruling."
The penalty for Pharaoh's sins was his eternal damnation in Hell-fire. Pharaoh was judged severely because he used his free will and chose to follow evil. Pharaoh failed to estimate the Extent of the misfortune that awaited him.
It was said to Pharaoh, "You are found guilty of killing the children of Banu Israel and raping their women as well. Guilty or not guilty?"
Pharaoh said, "Not guilt… Because the determination of those children's destiny was left to the board of viziers headed by Haman. Moreover, I did not actually read their verdict. I just asked Haman about what it contained. Haman did not point out anything to me that could be considered wrong. As for raping women, this is the first time I heard about it, and I am ready to hold an immediate investigation and reveal the facts."
It was said to Pharaoh, "You are guilty of wronging the Egyptians although you were entrusted with them Guilty or not guilty'?"
"No, not guilty." Pharaoh insisted.