He did not do that for two reasons:
1- Because when Pharoah’s wife saw baby Moses, she asked her husband not to kill him as he may grow and become helpful to them, or they may adopt him as their child.
Pharaoh’s wife said ˹to him˺, “˹This baby is˺ a source of joy for me and you. Do not kill him. Perhaps he may be useful to us or we may adopt him as a son.” They were unaware ˹of what was to come˺.) (Al-Qasas 28:9)
2- Because Allah the Almighty endued him with love from Him, so whoever saw him loved him. “And I blessed you with lovability from Me” (Ta-Ha 20: 39)
لسببين
لأن زوجة فرعون طلبت منه أن لا يقتله و قالت إنه يمكن أن يكون نافعا أو أن يتبنونه.
(وَقَالَتِ ٱمْرَأَتُ فِرْعَوْنَ قُرَّتُ عَيْنٍ لِّى وَلَكَ لَا تَقْتُلُوهُ عَسَىٰٓ أَن يَنفَعَنَآ أَوْ نَتَّخِذَهُۥ وَلَدًا وَهُمْ لَا يَشْعُرُون)
القصص28 : (9
لأن الله ألقى على وجه موسى محبة فلا يراه أحد إلا أحبه
(وَأَلْقَيْتُ عَلَيْكَ مَحَبَّةً مِّنِّي وَلِتُصْنَعَ عَلَىٰ عَيْنِي ﴿
طه 20: 39