 That was the prayer of Prophet Moses according to the Quran. As we see, Moses is in agreement with Allah that he made Pharaoh and his leaders rich. And why Allah made them rich? So that they can be distracted with these things of this world. So they will not believe and they will be living in error. Moses did not ask Allah to open the eyes or the heart of Pharaoh to accept.