One should not express displeasure at the birth of daughters,
because the birth of daughters also happens only by the command of Allah, as the Most High says:
لِّلَّهِ مُلْكُ السَّمَاوَاتِ وَالْأَرْضِ ۚ يَخْلُقُ مَا يَشَاءُ ۚ يَهَبُ لِمَن يَشَاءُ إِنَاثًا وَيَهَبُ لِمَن يَشَاءُ الذُّكُورَ - أَوْ يُزَوِّجُهُمْ ذُكْرَانًا وَإِنَاثًا ۖ وَيَجْعَلُ مَن يَشَاءُ عَقِيمًا ۚ إِنَّهُ عَلِيمٌ قَدِيرٌ [Al-Shura: 49 – 50]
“To Allah belongs the dominion of the heavens and the earth. He creates what He wills. He gives daughters to whom He wills and gives sons to whom He wills. Or He joins them together, sons and daughters, and He makes whom He wills barren. Indeed, He is All-Knowing, All-Powerful.”