Q. May I ask whether it is permissible to seek medical advice and assistance in order to get a baby son. My wife and I differ on this issue, to the extent that she says it is not necessary to pray to God to give us a son. Her argument is that God knows what is best for us, and He will give us what is best.
Muhammad
A. Your wife’s attitude suggests total acceptance of whatever God determines. This reflects a high degree of faith, on which she must be complemented. A person who accepts whatever comes from God is a good believer. May God make us all such good believers.
Having said that, I should add that there is nothing wrong with praying God to accomplish whatever purpose we have, provided that it does not constitute disobedience to God. Indeed, the Prophet describes praying to God to accomplish what we wish, desire or need as ‘the essence of worship’. This is due to the fact that when we supplicate, seeking God’s help in achieving our purpose, we acknowledge our weakness and His power. Therefore, He has promised to answer all sincere prayers. However, He either answers a prayer as it is, or by giving us something better for us, or He may defer granting our wish until the Day of Judgment when He gives us much more. He says in the Qur’an: “Your Lord says, ‘Pray Me and I will answer your prayers.’ (40: 60)
This means there is nothing wrong with praying God to give us a son, or a daughter, or whatever else we wish and desire, provided always that we do not pray Him to give us anything He has forbidden. Nor is there anything wrong with taking measures to accomplish any legitimate purpose. Indeed, part of the system God has established in this life is to make effects attendant on their causes. He has made this as part of accomplishing His will. So, when we take measures to heat our home on a cold day, the effect that results from such measures, i.e. heating the house, is done by God’s will, even though it is we who took the necessary measures, without which the house would have remained cold. If we give a newborn child the full course of vaccinations recommended by the health authorities, we give the child immunity against childhood diseases. This is done by God’s will, although it is the mother who took the baby to the health center for vaccination, and a nurse gave him the necessary shots.
What we have to understand is that God’s will is free, and although He has established the law of cause and effect, He is able to suspend it, or bring about some other law that influences the results of any particular cause. Whether He chooses to do so or not is entirely up to Him.
To relate this principle to the reader’s question we say that it is perfectly permissible to take measures to have another child, and to increase the chances of making that child a boy, if such measures exist, provided that they do not contravene Islamic principles, teachings and values. However, to the best of my knowledge, no technique has been established to be effective in determining the sex of any pregnancy that takes place naturally. Genetic engineering scientists continue to work on perfecting different techniques in the field of human reproduction, but determining the sex of a pregnancy is still a long way away. Besides there are many ethical issues involved. Hence, a Muslim is advised not to resort to such techniques until sufficient information is known about them so as to enable scholars to give them a ruling of permissibility or otherwise. In the meantime, my advice to my reader is to accept what God has given him. If he wants more children, he may certainly pray to God to give him as many as he wants, and of the sex he wishes, but apart from this, he is advised to do nothing.

