Having children is one of the blessings of Allah. God provides us all with different rizq (well-being), health and offsprings. All of these things are gifts from God and we should be grateful for what we are given and never complain for what we don't have.
It is sunnah to announce the birth of the child once the baby arrives but till that moment below are some beneficial advice for you and your child in sha Allah.
KEEP IT PRIVATE!
If you are expecting a baby, keep thanking God for this gift and keep it private among close relatives. There is a general principle which should be paid attention to when telling others of blessings. The news should be given only to those who wish good for you and will rejoice over it, so as to ward off the evil eye and destructive envy (hasad). The evidence for that is the words of the Prophet (peace and blessings of Allaah be upon him): “Be discreet in order to achieve what you want, for everyone who is blessed is envied.” Narrated by al-Tabaraani and Abu Nu’aym.
This is largely due to the EVIL EYE AND HASAD. These 2 are very real and more present than you can ever imagine. If you just share the news then let it be to someone who is absolutely necessary for the person to be told at that early stage.
SubhanAllah these days we are so eager to tell everyone who cares to listen that we are pregnant. You may carry your baby to full term and deliver him safely but you will then find out in future that a lot is wrong with his life and upbringing. Sometimes this has happened way before the child was born because you shared the news with envious people without you knowing.
There are many things in this world that are beyond doctors capacity to comprehend when it comes to health issues and the effects of the evil eye on health is the reason why they can't find the cause and cure for many conditions....this leads to misdiagnoses and mistreatment which opens up the door to false Islamic beliefs like incurable diseases which require unnecessary health interventions like vaccines and surgery which can lead to death. The unfortunate truth is that majority of Muslim doctors nowadays are untrained, unfit and unqualified to practice medicine according to islamic standards as they have been indoctrinated and brainwashed by the secular institutions that promotes secular beliefs over Islamic beliefs.