Surah An-Nahl

16:58

وَإِذَا بُشِّرَ أَحَدُهُم بِٱلْأُنثَىٰ ظَلَّ وَجْهُهُۥ مُسْوَدًّۭا وَهُوَ كَظِيمٌۭ

And when one of them is informed of [the birth of] a female, his face becomes dark, and he suppresses grief.

Tafsir 16:58

When one of these idolaters is given the news of the birth of a female his face darkens due to the extreme dislike of such news and his heart is filled with worry and grief. Then, he attributes to Allah what he does not like for himself!