And the family of Pharaoh picked him up [out of the river] so that he would become to them an enemy and a [cause of] grief. Indeed, Pharaoh and Hāmān and their soldiers were deliberate sinners.
How Musa's Mother was inspired and shown what to do
It was mentioned that when Fir`awn killed so many of the males of the Children of Israel, the Copts were scared that the Children of Israel would die out, and they themselves would have to do the heavy labor that the Children of Israel used to do. So they said to Fir`awn, "If this continues, and their old men die and the young men are killed, their women will not be able to do the work that the men are doing, and we will end up having to do it." So Fir`awn issued orders that the boys should be killed one year, and left alone the following year. Harun, peace be upon him, was born in a year when the boys were not killed, and Musa was born in a year when the boys were being killed. Fir`awn had people who were entrusted with this task. There were midwives who would go around and check on the women, and if they noticed that any woman was pregnant, they would write her name down. When the time came for her to give birth, no one was allowed to attend her except for Coptic women. If the woman gave birth to a girl, they would leave her alone and go away, but if she gave birth to a boy, the killers would come in with their sharp knives and kill the child, then they would go away; may Allah curse them. When the mother of Musa became pregnant with him, she did not show any signs of pregnancy as other women did, and none of the midwives noticed. But when she gave birth to a boy, she became very distressed and did not know what to do with him. She was extremely scared for him, because she loved him very much. No one ever saw Musa, peace be upon him, but they loved him, and the blessed ones were those who loved him both as a natural feeling and because he was a Prophet. Allah says:
وَأَوْحَيْنَا إِلَىٰ أُمِّ مُوسَىٰ (28:7) The word Wahy (inspiration) is used here in its literal meaning. It does not mean the Wahy that is peculiar to prophets. This point has already been explained under Surah Taha.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 6–8
Pharaoh is mentioned here as being guilty of creating great unrest in his land. He gave every conceivable advantage to his race (Egyptians) and deprived the Israelites of all facilities. Not only this, he also started having their newborn children killed so that their race should gradually be exterminated. Pharaoh’s unfair discrimination between the two races of Egypt amounted to interference with the system of nature that is, ‘fasad,’ in terms of God’s laws. Decisions regarding honour and dishonour are made by God. God’s decision was contrary to Pharaoh’s will. God decided to give honour and power to the Children of Israel and to destroy Pharaoh along with his armies. On conclusion of the missionary process through Moses, Pharaoh, though given a last chance to reform, proved himself to be deserving of punishment. Therefore, God ordained that he be drowned in the sea so that nothing should be left of his influence in Egypt. Subsequently, Children of Israel who had left Egypt were made rulers of Syria and Palestine.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.