Exodus 9:27 & 28

"Then Pharaoh summoned Moses and Aaron. 'This time I have sinned,' he said to them. 'The Lord is in the right and I and my people are in the wrong. Pray to the Lord, for we have had enough thunder and hail. I will let you go; you do not have to stay any longer." NIV translation

It appears that Pharaoh has "seen the light" and is repenting as he calls Moses and Aaron. Many will call out to the Lord or have someone else pray for them when they are in the middle of a tough situation. 

Exodus 9:29 & 30

"Moses replied, 'When I have gone out of the city, I will spread out my hands in prayer to the Lord. The thunder will stop and there will be no more hail, so you may know that the earth is the Lord's. But I know that you and your officials still do not fear the Lord God.'" NIV translation

Pharaoh wanted to be saved and even confessed that he was wrong but was not willing to repent. Moses recognized that as he agreed to pray for him and we see that repentance only comes from godly fear.