:salam2:
The killing of foetus , deciding whether to birth boy or girl or not, is not from Islam. These are imported traits. Unless unavoidable reasons or situations are there they should be given birth whether it’s boy or girl. The interpretation of ayah of quran I remind from memory is – ‘Allah gives to some boys, to some girls, to some nothing.’ I will refer this ayah here, inshaAllah.
muslims are thankful to Allah for this blessing. Many of the messengers have prayed for pious child like Ibrahim and Zakariyah alayhis salaam and were thankful to Allah, as He gave them child in old age. In surah Ibrahim, Allah revealed what ibrahim Alayhis salaam made duas for their children and is thankful to Allah that He gave him child Ismail alayhis salaam. Further we see many people make dua to have child. Some people have children after long time and they know what children are ! the killing of baby foetus has pagan roots, as same as mushriks before used to do before the advent of prophet (salla Allahu alayhi wasallam) And we know there is lot reward in bringing up the children, especially female baby. Even Islam does not allow harassment to animals or dumb living organisms, For them there are many rules regarding when and how to kill animals. the familiar case is making sacrifice during bakr - eid. The slaughter has to be in Islamic way.
And Allah only knows what is in womb whether its boy or girl. The hadith regarding is as below.
Narrated from Ibn ‘Umar (may Allaah be pleased with him), that the Messenger of Allaah (sallaAllahu alayhi wasallam) said:
‘The keys of the Unknown are five, which no-one knows except Allaah: no-one knows what will happen tomorrow except Allaah; no-one knows what is in the wombs except Allaah; no-one knows when it will rain except Allaah; no-one knows in which land he will die; and no-one knows when the Hour will begin except Allaah." (Saheeh al-Bukhaari, Kitaab Tafseer al-Qur’aan, hadeeth no. 4328).