The Islamic Ruling on Gender Selection and Its Relation to Divine Will

Egypt’s Dar Al-Ifta clarified that medical procedures to select a baby’s gender are permissible under certain conditions and do not contradict God’s will.

  Sun , October 19 2025 / 01:11 PM Updated At: 2025-10-19 13:11:15

Egypt’s Dar Al-Ifta received a question on its official website: Is it permissible to choose the gender of a baby? And does this contradict God’s divine will?

The institution responded that there is no religious objection to gender selection through medical intervention, provided there is a valid reason — such as preventing hereditary diseases linked to one gender, or when a family wishes to have a child of a different gender than their existing children. The process must, however, be carried out individually, under the supervision of qualified doctors, and without harm to the mother or fetus.

Dar Al-Ifta emphasized that gender selection does not represent an act of defiance against God’s decree. It is rather an example of taking permissible means, as all causes and their effects exist by God’s creation and command. Allah says: “And you do not will unless Allah wills” (Al-Insan: 30).

The ruling was compared to the prophetic permission for “coitus interruptus” (ʿazl), which the Prophet ﷺ allowed while affirming that what God has destined will still occur.

The fatwa listed key conditions for permissibility:

No harm should result for the mother or the child.

The procedure must be overseen by trusted medical professionals.

It must be applied to individual cases, not as a societal practice, to preserve the natural balance between genders.

In conclusion, Dar Al-Ifta stated that medical gender selection is not a rejection of divine will, but rather part of using lawful means within the scope of God’s creation and decree.

May 14
أدعية

Discover the best supplications from the Sunnah to relieve worry and sadness, and powerful duas that bring comfort, inner peace, and relief from distress.

May 14
فتاوى الحج

Learn the rulings on doubt during Tawaf, how to perform Hajj rituals and their types, and the permissibility of fasting some days of Dhul-Hijjah.

May 14
الحج المبرور.. معناه وعلاماته وأنواعه كما أوضحها العلماء

Learn the meaning of Hajj Mabroor, its signs of acceptance, and the three types of Hajj—Ifraad, Qiraan, and Tamattu—explained by Islamic scholars.

May 14
أدعية مستجابة

Discover the best supplications for the last third of the night for sustenance, blessing, and relief, along with powerful prayers for answered needs and increased provision.