firstly , those who have no knowledge , just shut up
Inherently, Islamic system balances between multitude levels of child(ren)’s need. In recognition of an infant’s need for female care, all the juristic schools give first preference to a mother’s claim to physical custody of her young child provided that she satisfies all the requirements for a female custodian. After divorce during the period of the mother’s custody, she is generally entitled to receive custody wages from the father to help her maintain the child. Islamic Jurisprudential inferences Islamic law on custody of children after divorce is based on several hadith relating to how the Prophet sallalahu Alaihe wasallam dealt with cases brought before him.
One of the key relevant hadith is the following: According to Amr Ibn Shu’aib, a woman came to the Prophet* and said: ‘Truly my belly served as a container for my son here, and my breast served as a skin-bag for him (to drink out of) and my bosom served as a refuge for him; and now his father has divorced me, and he (also) desires to take him away from me.’ The Prophet sallalahu Alaihe wasallam said: 'You have a better right to have him, as long as you do not marry again.
Hadith: Ibn Majah The mother is recognised as generally the fittest person to take care of the children, because of the instinctive love and tenderness she feels for them and her closer contact with them throughout pregnancy, nursing, and childhood. However, if the mother marries again she would generally forfeit her right to custody. However, the period of female custody ends once the child reaches a certain age of custodial transfer.
islamic-sharia.org/children/islamic-perspective-on-child-custody-after-divorce.html