Quran 31:34-Only Allah Knows What Is Inside The Womb Of Mother
I quote one incidence and that may explain this verse . Omer bin Khattaab was looking for a Qazi . In the meeting one person said that such and such person is good for this job. Omer asked do you know him. He replied that he prays 5 times a day so I think he is a godly guy. Omaer asked him did you ever travelled with him Reply was NO. Omer asked did you do buiseness with him he replied no again Omer said so you know nothing about him. Just like knowing the gender of the baby means nothing. There are millions of questions attached the ayah, ONLY ALLAH KNOWS ABOUT HIM OR HER. Knowing gender is a very minuscule part of the personality. When you marry do you just want to know about the gender of your souse. Thanks for asking this good question. Jazzak Allah
yes i agree it happens.