All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
The view of the Shaafi'i school is that if a daughter reaches the age of puberty, it is better for her to be with one of her parents, and she may live wherever she wishes provided that that place is safe and free of accusations or suspicion.
Tuhfatul-Muhtaaj, authored by Al-Khateeb Ash-Shirbeeni from the Shaafi'i school, reads, “If she is a female, then when she reaches the age of puberty and is sane, it is better for her to be with one of her parents until she gets married if they are separated, and with both of them if her parents are living together; this is in order to avoid any threats to her safety, and she may live wherever she wishes, even if she is a virgin; this is in case there is no suspicion...”
There is no harm if the father tries to convince his daughter to be with him and if he has a legitimate, favorable environment where her interests can be achieved, then he may convince her of that.
It should be mentioned that there is nothing wrong with her living with her stepfather provided that there is no suspicion, especially given that he is a mahram (permanently unmarriageable) for her; as she becomes his stepdaughter once he consummates the marriage with her mother. Allaah says, while mentioning the women who are prohibited for marriage (what means): {…and your step-daughters under your guardianship [born] of your wives unto whom you have gone in.} [Quran 4:23]
Allaah knows best.