All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
There is no harm for women or male Mahaarim to visit a woman in hospital or any other place after she gave birth to a child. However, if this leads to a prohibition, like mixing between men and women and the like, then it is not permissible.
Allaah Knows best.