forgive my sin: Pharaoh’s understanding grew deeper. He admitted that his pride and his refusal to keep his word were sins. He understood that sin cannot be ignored. It must be forgiven.
However, even though Pharaoh understood this truth, he still refused to obey. His heart (inner attitude) did not change.