Quran 28:5 — History (Al-Qasas)
We willed to compensate those who were oppressed on earth, and to turn them into leaders, and make them the inheritors.
[28:4] Pharaoh turned into a tyrant on earth, and discriminated against some people. He persecuted a helpless group of them, slaughtering their sons, while sparing their daughters. He was indeed wicked.
[28:6] And to establish them on earth, and to give Pharaoh, Hamaan, and their troops a taste of their own medicine.