Quran 31:34-Only Allah Knows What Is Inside The Womb Of Mother
It is not about the gender of newborn baby. It is fate of that baby which only Allah knows. As mostly scholar interpret this ayah in this way.