Answer
Based on official Jordanian legal texts
The Sharia Court's role in custody cases under Jordanian law rests on a clear reference point: the child's best interest. Article 170 of the Personal Status Law assigns custody, where considerations compete, to whatever the court sees as serving the child's interest, within the order of those entitled that begins with the biological mother.
Article 184 gives the court a role in overseeing the child's affairs; Article 182 grants it the power to organize and modify visitation, overnight stays, and accompaniment according to interest; and Article 183 lets it address a custodian's refusal to comply with a visitation or overnight ruling by temporarily forfeiting custody. Article 186 provides that the mother is compelled to take custody where it falls to her alone, otherwise it is assigned to the most suitable.
The court thus assesses whether the custodian's conditions under Article 171 are met and whether the grounds for lapse under Article 172, or return under Article 174, are present.
The court's assessment throughout depends on the facts and evidence in each case, and no ruling is guaranteed in advance for either party.
This is a general explanation based on Jordanian Personal Status Law and does not replace advice from a qualified lawyer in a specific dispute.
