Exodus 21:9

ISV(i) 9 If he has selected her for his son, he is to treat her according to the ordinance for daughters.