(Qasas) 28 : 8
فَالْتَقَطَهُ آلُ فِرْعَوْنَ لِيَكُونَ لَهُمْ عَدُوًّا وَحَزَنًا ۗ إِنَّ فِرْعَوْنَ وَهَامَانَ وَجُنُودَهُمَا كَانُوا خَاطِئِينَ
And the family of Pharaoh picked him up so that he would become to them an enemy and a cause of grief; indeed Pharaoh, Haman, and their soldiers were offenders.
It is the Three-Time-Knower Lord who made child Moses reach Pharoah’s palace safely to make him grow up there. See explanation 26: 18-22.