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, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
There is no religious evidence for a mother and her new-born baby to stay forty days in her home; rather it is among the traditions which have no foundation. Therefore, it is not an obligation to abide by this.
On the contrary, it is permissible for the mother and her new-born baby to go out of her home even one moment after giving birth to the child.
Finally, we thank both of you for being keen on knowing the matters pertaining to your religion. We ask Allaah to bless your new-born child, and we hope that he/she will be raised as a righteous person.
Allaah Knows best.