In Islamic law, after divorce the mother has the right to look after the children until they’re seven years of age. In these years the father has to provide for the needs of the children. After seven, he has the right of the children. There are some exceptions stipulated in opinions of scholars.