When the infant Musa floated in a chest to Pharaoh's palace, Pharaoh's wife said: do not kill him; he may benefit us, or we may adopt him as a son. Through her mercy a prophet was saved.
In the very palace where Pharaoh claimed to be the 'highest lord', she believed in Allah alone. The Quran makes her an example for the believers and preserves her prayer:
وَضَرَبَ ٱللَّهُ مَثَلٗا لِّلَّذِينَ ءَامَنُواْ ٱمۡرَأَتَ فِرۡعَوۡنَ إِذۡ قَالَتۡ رَبِّ ٱبۡنِ لِي عِندَكَ بَيۡتٗا فِي ٱلۡجَنَّةِ وَنَجِّنِي مِن فِرۡعَوۡنَ وَعَمَلِهِۦ وَنَجِّنِي مِنَ ٱلۡقَوۡمِ ٱلظَّٰلِمِينَ
“And Allāh presents an example of those who believed: the wife of Pharaoh, when she said, "My Lord, build for me near You a house in Paradise and save me from Pharaoh and his deeds and save me from the wrongdoing people."”
Surah At-Tahrim 66:11
Translation: Saheeh International (QuranEnc)
❝ HadithThe Messenger of Allah ﷺ said: many men reached perfection, but among women none reached perfection except Asiyah, the wife of Pharaoh, and Maryam, the daughter of 'Imran.Sahih al-Bukhari 3411 · Sahih