Abu Amarah
July 30, 2026
11 mins read
A comprehensive look at the Islamic rulings on child custody after divorce, drawing on the Qurʾān, Sunnah, classical fiqh, and contemporary fatwas from the scholars of Ahl al-Sunnah.

The Definition and Nature of Custody
Custody (ḥaḍānah) refers to the care, protection, and upbringing of one who is unable to manage his or her own affairs. It includes safeguarding the child from harm, nurturing and raising them appropriately, providing food and drink, maintaining cleanliness, washing their clothing, applying oil where appropriate, and attending to their sleep, health, and general welfare.
Custody is a legal obligation in the Sharīʿah, because neglecting it exposes the child to harm and possible destruction. Where several eligible custodians exist, this obligation is communal (farḍ kifāyah). If only one qualified custodian exists, or the child accepts no one else, then it becomes an individual obligation (farḍ ʿayn).
Custody is also a right belonging to the eligible custodian. If that person is not specifically designated and chooses to forgo this right, they cannot be compelled to undertake it. If they relinquish their right, it passes to the next person entitled to custody.
The Mother’s Primary Right to Custody
When the marriage remains intact, custody belongs jointly to both parents. If the marriage ends through divorce or the death of the father, then, by scholarly consensus, custody belongs to the mother. There is no difference of opinion among the scholars on this point, provided there is no legal impediment preventing her from exercising that right.
This is based on the narration of ʿAbd Allāh ibn ʿAmr ibn al-ʿĀṣ, in which a woman came to the Messenger of Allah ﷺ and said: “O Messenger of Allah, this son of mine, my womb was a vessel for him, my lap was a refuge for him, and my breast was a source of nourishment for him, yet his father wishes to take him away from me.” The Prophet ﷺ replied: “You have more right to him so long as you do not remarry.” This was recorded by Imām Aḥmad ibn Ḥanbal (d. 241 AH/855 CE) in al-Musnad and by Abū Dāwūd (d. 275 AH/889 CE) in his Sunan.
Ibn al-Qayyim (d. 751 AH/1350 CE) commented on this narration, stating: “This ḥadīth indicates that when the parents separate while they have a child between them, the mother has more right to the child than the father, unless there exists a factor preventing her from being given precedence, or there is a characteristic in the child requiring that he be given the choice. No disagreement is known concerning this.”
He further noted that Abū Bakr al-Ṣiddīq ruled accordingly against ʿUmar ibn al-Khaṭṭāb on this very matter, and no Companion objected to his judgement. Imām Mālik (d. 179 AH/795 CE) recorded this incident in al-Muwaṭṭaʾ: ʿUmar had divorced a woman from the Anṣār who had borne him his son ʿĀṣim. He later came to Qubāʾ and found the boy playing in the courtyard of the mosque, and took hold of his arm to place him upon his own riding animal. The boy’s grandmother pursued him and disputed the matter until they both came before Abū Bakr al-Ṣiddīq. ʿUmar said, “He is my son,” while the woman said, “He is my son.” Abū Bakr ruled, “Leave him with her,” and ʿUmar did not object further. When ʿUmar later became Caliph, he himself ruled in the same manner in similar cases.
The Order of Precedence and the Age of Discernment
The person most entitled to the custody of a child after the separation of the spouses is the child’s mother. If she remarries, custody passes to the maternal grandmother. If the maternal grandmother is unavailable, it passes to the paternal grandmother, since custody primarily belongs to the women of the family, as the mother is more compassionate towards her child than anyone else.
The scholars differed considerably regarding the age at which the mother’s primary right to custody comes to an end. The view that appears strongest is that the mother retains the greater right to custody until the child reaches the age of discernment (tamayyuz). Once the child reaches that stage, he or she is given the choice between the parents.
This is supported by the ḥadīth of Abū Hurayrah, who narrated that the Messenger of Allah ﷺ gave a young boy the choice between his father and his mother. This was recorded by the compilers of the Sunan, and Imām al-Tirmidhī (d. 279 AH/892 CE) graded it authentic.
Abū Hurayrah also narrated that a woman came to the Prophet ﷺ and said: “O Messenger of Allah, my husband wishes to take away my son, yet he has brought me water from the well of Abū ʿInabah and has been of benefit to me.” The Messenger of Allah ﷺ said: “Cast lots concerning him.” Her husband then said: “Who will dispute with me regarding my child?” The Messenger of Allah ﷺ said: “This is your father and this is your mother, so take the hand of whichever of them you wish.” The child took his mother’s hand, and she departed with him. Imām al-Tirmidhī described this narration as ḥasan ṣaḥīḥ.
The Permanent Committee for Scholarly Research and Fatwās, in an official ruling issued according to the madhhab of Imām Aḥmad ibn Ḥanbal (Fatwā no. 14806), confirmed this order of precedence: when a boy reaches the age of seven, he is given the choice between his father and his mother, and he remains with whichever of the two he chooses. When a girl reaches the age of seven, her father has the greater right to her custody, because she is in need of protection and safeguarding, while the mother herself requires someone to protect her. This ruling was signed by Shaykh ʿAbd al-ʿAzīz ibn Bāz (d. 1420 AH/1999 CE) as Chairman, alongside Shaykh ʿAbd al-Razzāq ʿAfīfī, Shaykh ʿAbdullāh ibn Ghudayyān, Shaykh Ṣāliḥ al-Fawzān, and Shaykh ʿAbd al-ʿAzīz Āl al-Shaykh.
However, neither a boy nor a girl should remain in the custody of someone who does not protect them or look after their welfare, even if that person would ordinarily hold the greater right to custody according to the established order of precedence. This is the madhhab of Imām Aḥmad ibn Ḥanbal, and it was reaffirmed in the Permanent Committee’s ruling cited above.
Shaykh Muḥammad ibn Ṣāliḥ al-ʿUthaymīn (d. 1421 AH/2001 CE) explained this principle further when asked with whom children should remain following a separation. He stated that they should remain with whomever the Sharīʿah judge rules to be in their best interest, should the parents fail to agree. He emphasised that the objective of custody is to safeguard and nurture the welfare of the child, and it is therefore impermissible for a child to remain in the custody of someone who is neglectful, unconcerned with the child’s welfare, or involved in sinful conduct, regardless of that person’s formal precedence. Such a person forfeits their right to custody, and the matter returns to the judge, who must fear Allah ﷻ and give due consideration to the welfare and best interests of the child.
Shaykh ʿAbd al-ʿAzīz ibn Bāz was asked a related question concerning the apparent variation across different aḥādīth, in which the Prophet ﷺ awarded custody in different cases to the father, to the mother, jointly, or by the child’s own choice. He explained that these differing outcomes reflect the fact that custody is a matter requiring careful examination of each individual case: it may be that the father is righteous while the mother is not, in which case he is more deserving of custody, or the reverse may be true. Such matters, he concluded, are best left to qualified judges, who can assess the particular circumstances of each case as they arise.
The Prohibition of Preventing Contact Between Parent and Child
A distinct but closely related matter concerns the right of the non-custodial parent to maintain contact with the child. Ibn Qudāmah al-Maqdisī (d. 620 AH/1223 CE) stated plainly: “Neither parent should be prevented from visiting the child whilst the child is with the other.” This is because preventing such visitation leads to the severing of family ties, a matter for which severe warnings have been transmitted in the Sunnah.
The Prophet ﷺ said: “The one who severs the ties of kinship will not enter Paradise.” Abū Hurayrah also narrated that the Messenger of Allah ﷺ said: “Allah created the creation, and when He had finished, the womb stood and clung to the Most Merciful…” The ḥadīth concludes with Allah ﷻ saying: “Are you not pleased that I maintain ties with whoever maintains you and sever ties with whoever severs you?” Abū Hurayrah then recited:
فَهَلْ عَسَيْتُمْ إِن تَوَلَّيْتُمْ أَن تُفْسِدُوا فِي الْأَرْضِ وَتُقَطِّعُوا أَرْحَامَكُمْ أُولَـٰئِكَ الَّذِينَ لَعَنَهُمُ اللَّهُ فَأَصَمَّهُمْ وَأَعْمَىٰ أَبْصَارَهُمْ ۞
“Would you then, if you were given authority, cause corruption in the land and sever your ties of kinship? They are the ones whom Allah has cursed, making them deaf and blinding their sight.” (Sūrat Muḥammad 47:22–23)
Shaykh Ibn al-ʿUthaymīn was asked directly about a mother who had been divorced for nine years, throughout which the father had prevented her children from visiting her entirely. He addressed the father first, stating plainly that it is not permissible for him to prevent his children from visiting their mother. While he may have the right to prevent her from visiting them in his own home, since the house belongs to him, he has no right to prevent the children themselves from visiting her in her own home. He warned that such a man, who has come between a mother and her children, may be punished by Allah ﷻ, such that Allah ﷻ causes separation between him and those most beloved to him, whether in this world or the Hereafter, asking rhetorically what harm it would cause him for the children to visit their mother for even a day or two each week. As for the mother in such a situation, he counselled her to remain patient, seek her reward with Allah ﷻ, and supplicate that Allah ﷻ incline the father’s heart towards permitting the children to visit her.
Custody as a Renewable Right
The Mawsūʿah al-Fiqhiyyah al-Kuwaytiyyah notes that custody may cease because the person entitled to it relinquishes that right. If the custodian later returns and requests custody, the request is accepted, because custody is a right that renews with the passage of time, just as maintenance does. Likewise, if custody was prevented due to an impediment, such as insanity, immorality, illness, or another obstacle, then once the impediment ceases, the right returns, in accordance with the legal maxim: “When the impediment is removed, the original ruling returns.”
Reference
Al-Qurʾān al-Karīm, Sūrat Muḥammad (47:22–23). Ibn ʿUthaymīn, Muḥammad ibn Ṣāliḥ (d. 1421 AH/2001 CE), Liqāʾ al-Bāb al-Maftūḥ, no. 229. The Permanent Committee for Scholarly Research and Fatwās, Fatwā no. 14806, 21/193–195, signed by Shaykh ʿAbd al-ʿAzīz ibn Bāz (Chairman), Shaykh ʿAbd al-Razzāq ʿAfīfī (Vice Chairman), Shaykh ʿAbdullāh ibn Ghudayyān, Shaykh Ṣāliḥ al-Fawzān, and Shaykh ʿAbd al-ʿAzīz Āl al-Shaykh. Ibn Bāz, ʿAbd al-ʿAzīz (d. 1420 AH/1999 CE), Nūr ʿalā al-Darb. Aḥmad ibn Ḥanbal (d. 241 AH/855 CE), Al-Musnad, ḥadīth no. 2804, authenticated by Aḥmad Muḥammad Shākir (d. 1377 AH/1958 CE) and by Muḥammad Nāṣir al-Dīn al-Albānī (d. 1420 AH/1999 CE) in Al-Silsilah al-Ṣaḥīḥah, no. 2382. Abū Dāwūd, Sulaymān ibn al-Ashʿath al-Sijistānī (d. 275 AH/889 CE), Sunan Abī Dāwūd. Al-Tirmidhī, Muḥammad ibn ʿĪsā (d. 279 AH/892 CE), Jāmiʿ al-Tirmidhī. Mālik ibn Anas (d. 179 AH/795 CE), Al-Muwaṭṭaʾ. Ibn al-Qayyim al-Jawziyyah, Muḥammad ibn Abī Bakr (d. 751 AH/1350 CE), Zād al-Maʿād fī Hady Khayr al-ʿIbād, Muʾassasat al-Risālah, Beirut; and Miftāḥ Dār al-Saʿādah, vol. 2, p. 905. Ibn Qudāmah al-Maqdisī, ʿAbd Allāh ibn Aḥmad (d. 620 AH/1223 CE), Al-Mughnī, Dār ʿĀlam al-Kutub, Riyadh. Al-Ḥākim al-Naysābūrī, Muḥammad ibn ʿAbd Allāh (d. 405 AH/1014 CE), Al-Mustadrak ʿalā al-Ṣaḥīḥayn, vol. 2, pp. 57–58, declared authentic according to the conditions of Muslim by al-Ḥākim, and authenticated by al-Albānī in Al-Silsilah al-Ṣaḥīḥah, vol. 1, p. 498. Ministry of Awqāf and Islamic Affairs, Kuwait, Al-Mawsūʿah al-Fiqhiyyah al-Kuwaytiyyah, vol. 17, p. 317.