The Qur'an presents Pharaoh's wife as an example for believers. She is unnamed in the Qur'an and named in authentic literature, including al-Bukhārī.
Named Āsiyah in the ḥadīth literature.
The story
Speaking for the infant
When the infant was in Pharaoh's household, Pharaoh's wife spoke in his defense. She urged that he should not be killed and suggested that he might benefit them or be taken as a son. The verse records her intervention on behalf of a vulnerable child. It does not give a personal name for her, and the household did not understand what the child's future would bring.
In another passage, Allah presents Pharaoh's wife as an example for those who believe. Her place in his household did not make her share his unbelief. Ibn Kathīr explains that her husband's disbelief did not harm her when she obeyed Allah. The account directs attention away from her royal position and toward the faith expressed in her prayer for a home with Allah in Paradise.
Her prayer asked Allah for more than a different place to live in this world. She sought a home with Him in Paradise and deliverance from Pharaoh, his conduct, and the wrongdoing people around her. The verse preserves her turning to Allah rather than presenting royal comfort as her greatest good. Her example rests on faith and a clear separation from the wrongdoing of her surroundings.
Pharaoh's wife is given as an example to believers even though her husband opposed Allah. Ibn Kathīr draws attention to this distinction: his disbelief did not harm her when she obeyed Allah. A person's standing with Allah is not simply inherited from a spouse or household.
Her prayer places a home with Allah in Paradise above attachment to Pharaoh's household. It also asks for rescue from wrongdoing, not merely from discomfort. Her example teaches believers to value faith and the final home more highly than the apparent advantages of a powerful setting.
A difficult household does not place faith beyond reach. Pharaoh's wife turned to Allah for rescue and a home in Paradise, becoming an example for believers rather than a reflection of her husband's disbelief.
Summaries of Ibn Kathīr's commentary on the linked āyāt, with authentic ḥadīth noted in the text where used. Verse links open Quran.com text and your chosen translation.