Common rule is the fact divorced wife is entitled to custody right until seven yrs for males (classical Hanafi placement) and puberty for women, subject matter to classical circumstances, although You can find some overall flexibility as best passions in the ward are thought of paramount As outlined by Guardians https://riverpqhyw.ampedpages.com/a-review-of-child-custody-59313867